[Koha-bugs] [Bug 6673] Create Batch Label from Staged MARC Records fails after upgrade to 3.4.x

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 21 04:39:16 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6673

--- Comment #9 from Chris Cormack <chris at bigballofwax.co.nz> 2011-09-21 02:39:16 UTC ---
Furthermore

In 3.4.x and onwards, 
$template->param('LoginBranchname') always returns nothing 

$template->param('anything') will always return nothing. With the change to
template::toolkit the param call is just a wrapper to set a variable for use by
the template:

$template->param('fish' => 'food') == $template->{VARS}->{'fish'} = 'food';
$template->param('fish') == $template->{VARS}-{'fish'} = '';

The way to get a variable is $template->{VARS}->{'LoginBranchname'}

I agree, we may as well just fetch the branch for the userenv. The reason its
failing now, is branch is never going to be set with the existing code

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list