From 1f83e427acf903d69679abe141c235e14372fbc6 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 27 Jun 2017 01:47:25 +0000 Subject: [PATCH] Bug 18859: Prevent warns when viewing holds queue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code was using $itemtypes->description instead of $itemtype->description. To test: 1) View the intranet log 2) Go to Circulation -> Holds queue 3) Notice the warns 4) Apply patch and refresh page 5) Warns should not appear and item types should still display as expected Sponsored-by: Catalyst IT Signed-off-by: Marc VĂ©ron --- circ/view_holdsqueue.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/view_holdsqueue.pl b/circ/view_holdsqueue.pl index 75b02d5..7c09754 100755 --- a/circ/view_holdsqueue.pl +++ b/circ/view_holdsqueue.pl @@ -68,7 +68,7 @@ my @itemtypesloop; while ( my $itemtype = $itemtypes->next ) { push @itemtypesloop, { value => $itemtype->itemtype, - description => $itemtypes->description, # FIXME Don't we want the translated_description here? + description => $itemtype->description, # FIXME Don't we want the translated_description here? }; } -- 2.1.4