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:
Galen Charlton 2010-02-21 18:04:15 -05:00
parent 43c0277ac5
commit 4bade723ef
1 changed files with 1 additions and 2 deletions

View File

@ -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},
};
}