From 4bade723efdf07a044eb88356b2038a63f8455fb Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 21 Feb 2010 18:04:15 -0500 Subject: [PATCH] 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 2345dc7c27381aad51d5c1a7f566a9ce0b728ac5. Signed-off-by: Galen Charlton --- C4/Branch.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/C4/Branch.pm b/C4/Branch.pm index a6b1a3aef0..103a14d3c8 100644 --- a/C4/Branch.pm +++ b/C4/Branch.pm @@ -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}, }; } -- 2.20.1