Revert "(bug #3778) GetBranchesLoop and searchMyLibraryFirst"

This reverts commit 36ae08af32.
This commit is contained in:
Henri-Damien LAURENT 2010-03-08 22:43:33 +01:00
parent 59f8b71a62
commit 32aac9e4fb
1 changed files with 1 additions and 2 deletions

View File

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