Bug 6733: change branchcode call in Labels to use userenv instead of LoginBranchname
authorIan Walls <ian.walls@bywatersolutions.com>
Wed, 21 Sep 2011 15:08:33 +0000 (11:08 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 28 Sep 2011 07:29:39 +0000 (20:29 +1300)
commit973371a68b1c2a8af7d90afab8db15bda567f606
tree6a87c0cd0733f1a1d2cb94138fba49eae622090a
parent405ee6844d835322621bad4cfcfa8c359e8878f7
Bug 6733: change branchcode call in Labels to use userenv instead of LoginBranchname

In the 5 places in the label editor, the user's current branch is determined by taking
the LoginBranchname and doing a reverse look up for the branchcode.  This is an unnecessary
query, since C4::Context->userenv has the immediate access to the branchcode; this is how
it's summoned in all other points in the Koha code.

This addresses bug 6673 because, since the move to T:T, the call in tools/manage-marc-import.pl
has used in correct syntax:  $template->param('LoginBranchname') instead of $template->{VARS}->param('LoginBranchname')

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
labels/label-edit-batch.pl
labels/label-manage.pl
patroncards/edit-batch.pl
patroncards/manage.pl
tools/manage-marc-import.pl