diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 93f4b9ba3f..d2d1cbe097 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -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