Revert "(bug #3778) GetBranchesLoop and searchMyLibraryFirst"
Reverting this commit to resolve bug 4016. This revert has the
same effect as a patch submitted by Garry Collum on 20 February 2010.
This reverts commit 2345dc7c27.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
43c0277ac5
commit
4bade723ef
|
|
@ -157,11 +157,10 @@ sub GetBranchesLoop (;$$) { # since this is what most pages want anyway
|
|||
my $onlymine = @_ ? shift : onlymine();
|
||||
my $branches = GetBranches($onlymine);
|
||||
my @loop;
|
||||
my $searchMyLibraryFirst = C4::Context->preference("SearchMyLibraryFirst");;
|
||||
foreach (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) {
|
||||
push @loop, {
|
||||
value => $_,
|
||||
selected => (($_ eq $branch) && $searchMyLibraryFirst ) ? 1 : 0,
|
||||
selected => ($_ eq $branch) ? 1 : 0,
|
||||
branchname => $branches->{$_}->{branchname},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue