]> git.koha-community.org Git - koha.git/commit
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 Nighswonger <chris.nighswonger@gmail.com>
Sat, 8 Oct 2011 21:47:06 +0000 (17:47 -0400)
commitcac61e967c9a2b1f73aa5097430b96eec03c365a
tree699282dbf1057515e114d4786da34470d668cd14
parent19cd06bbcfd4527a5e0ece3d8786071d7678240d
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>
(cherry picked from commit 973371a68b1c2a8af7d90afab8db15bda567f606)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
labels/label-edit-batch.pl
labels/label-manage.pl
patroncards/edit-batch.pl
patroncards/manage.pl
tools/manage-marc-import.pl