additem : change GetBranches to GetBranchesLoop
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Sat, 19 Sep 2009 19:46:07 +0000 (21:46 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Sat, 19 Sep 2009 19:47:49 +0000 (21:47 +0200)
cataloguing/additem.pl

index 93f4b9b..d2d1cbe 100755 (executable)
@@ -258,7 +258,7 @@ my $onlymine = C4::Context->preference('IndependantBranches') &&
                C4::Context->userenv                           && 
                C4::Context->userenv->{flags}!=1               && 
                C4::Context->userenv->{branch};
-my $branches = GetBranches($onlymine);  # build once ahead of time, instead of multiple times later.
+my $branches = GetBranchesLoop(undef,$onlymine);  # build once ahead of time, instead of multiple times later.
 
 foreach my $tag (sort keys %{$tagslib}) {
 # loop through each subfield