From 1b73cae6eb4ce7e7ca675d6db84fe8ce0cd2f499 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 --- 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 35836997cf..ff398b995a 100755 --- a/course_reserves/add_items.pl +++ b/course_reserves/add_items.pl @@ -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; } -- 2.39.5