diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index c5dd7d9efc..b2b11929ab 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -570,7 +570,7 @@ my $onlymine = C4::Context->preference('IndependantBranches') && C4::Context->userenv && C4::Context->userenv->{flags}!=1 && C4::Context->userenv->{branch}; -my $branches = GetBranchesLoop(undef,$onlymine); # build once ahead of time, instead of multiple times later. +my $branches = GetBranchesLoop(C4::Context->userenv->{branch},$onlymine); # build once ahead of time, instead of multiple times later. # We generate form, from actuel record my @fields;