X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=cataloguing%2Fadditem.pl;h=b2b11929abf6b18478110924dd3841d953fe765b;hb=f7d9ebbff3ab9b620b0c0b80b3dc28c51753ec13;hp=c5dd7d9efc6017f21f784b676752cc1696fe9abb;hpb=b06a289173d0f2e299b0c8652d59d47dc196062c;p=koha_gimpoz 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;