From d8e239c23e23eb34eb2552cc036b364c869ceec2 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Thu, 17 Mar 2011 20:48:33 -0400 Subject: [PATCH] Bug 5902: additem.pl should default to set library This patch makes the additem screen default to selecting the currently set library. If the library is unset, it will default to the first branch alphabetically. Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- cataloguing/additem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2