Bug 31633: (follow-up) Group template params
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
504f418957
commit
626ad0d207
1 changed files with 8 additions and 8 deletions
|
@ -45,10 +45,10 @@ $sth = $dbh->prepare($sql);
|
|||
$sth->execute($barcode);
|
||||
$item = $sth->fetchrow_hashref;
|
||||
|
||||
unless (defined $item) {
|
||||
$template->param( 'Barcode' => $barcode );
|
||||
$template->param( 'BarcodeNotFound' => 1 );
|
||||
}
|
||||
$template->param(
|
||||
Barcode => $barcode,
|
||||
BarcodeNotFound => 1,
|
||||
) unless defined $item;
|
||||
|
||||
my $body;
|
||||
|
||||
|
@ -83,10 +83,10 @@ while ( my ( $key, $value ) = each(%$data) ) {
|
|||
$body = $scheme;
|
||||
|
||||
$template->param(
|
||||
'itemhomebranch' => $item->{homebranch},
|
||||
'itemholdingbranch' => $item->{holdingbranch}
|
||||
autoprint => C4::Context->preference("SpineLabelAutoPrint"),
|
||||
content => $body,
|
||||
itemholdingbranch => $item->{holdingbranch},
|
||||
itemhomebranch => $item->{homebranch},
|
||||
);
|
||||
$template->param( autoprint => C4::Context->preference("SpineLabelAutoPrint") );
|
||||
$template->param( content => $body );
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
Loading…
Reference in a new issue