From 1da77ea584bcc2a2878106b6bc174b21bb0837ff Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 28 Jul 2017 11:38:33 +0000 Subject: [PATCH] Bug 18367 - (QA Followup) Only warn if doing a lookup and not having an item Signed-off-by: Jonathan Druart (cherry picked from commit 1b73cae6eb4ce7e7ca675d6db84fe8ce0cd2f499) Signed-off-by: Fridolin Somers --- course_reserves/add_items.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course_reserves/add_items.pl b/course_reserves/add_items.pl index ed37654de0..0149045749 100755 --- a/course_reserves/add_items.pl +++ b/course_reserves/add_items.pl @@ -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; } -- 2.39.5