Bug 18367 - (QA Followup) Only warn if doing a lookup and not having an item
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 1b73cae6eb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
456e849ec2
commit
1da77ea584
|
|
@ -55,7 +55,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
|
||||
unless ( $item && $action eq 'lookup' ){
|
||||
if ( !$item && $action eq 'lookup' ){
|
||||
$template->param( ERROR_ITEM_NOT_FOUND => 1 );
|
||||
$template->param( UNKNOWN_BARCODE => $barcode ) if $barcode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue