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>
This commit is contained in:
Nick Clemens 2017-07-28 11:38:33 +00:00 committed by Jonathan Druart
parent e5e5402f36
commit 1b73cae6eb
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,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;
}