[Koha-patches] [PATCH] [SIGNED-OFF] Bug 5902: additem.pl should default to set library
Nicole C. Engard
nengard at bywatersolutions.com
Fri Mar 18 01:48:33 CET 2011
From: Jared Camins-Esakov <jcamins at bywatersolutions.com>
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 <nengard at bywatersolutions.com>
---
cataloguing/additem.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl
index c5dd7d9..b2b1192 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;
--
1.7.2.3
More information about the Koha-patches
mailing list