From 0e90706b70ddcc30a37fd87a78211aecb0add188 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 28 Dec 2015 10:57:41 -0300 Subject: [PATCH] [PASSED QA] Bug 15431: svc/checkouts dies due to undefined variable (13024 merge problem) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When bug 13024 was merged into 3.20.x, a bug was introduced by replacing the old way to fetch itemtype descriptions with the newer (3.22+). To test: - Perform a checkout on a patron - Check so all checkouts are shown immediately => FAIL: It keeps loading forever. The logs show the svc/checkouts script died - Apply the patch - Reload page => SUCCESS: It loads the circ information correctly - Sign off :-D Regards Signed-off-by: Frédéric Demians Signed-off-by: Katrin Fischer --- svc/checkouts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/checkouts b/svc/checkouts index 47102ed..e262008 100755 --- a/svc/checkouts +++ b/svc/checkouts @@ -152,7 +152,7 @@ while ( my $c = $sth->fetchrow_hashref() ) { author => $c->{author}, barcode => $c->{barcode}, itemtype => $item_level_itypes ? $c->{itype} : $c->{itemtype}, - itemtype_description => $itemtype->{translated_description}, + itemtype_description => $item_level_itypes ? $c->{itype_description} : $c->{itemtype_description}, location => $c->{location} ? GetAuthorisedValueByCode( 'LOC', $c->{location} ) : q{}, itemnotes => $c->{itemnotes}, itemnotes_nonpublic => $c->{itemnotes_nonpublic}, -- 1.9.1