From: Ian Walls Date: Wed, 21 Sep 2011 15:08:33 +0000 (-0400) Subject: Bug 6733: change branchcode call in Labels to use userenv instead of LoginBranchname X-Git-Tag: v3.06.00~157 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=973371a68b1c2a8af7d90afab8db15bda567f606;hp=973371a68b1c2a8af7d90afab8db15bda567f606;p=koha_fer 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 Signed-off-by: Ian Walls Signed-off-by: Chris Cormack ---