From 188727870bf687562bff657240d76a6d62be205f Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 26 May 2022 15:24:17 -0400 Subject: [PATCH] LP1901930 tweaks to SIP2 Checkout Response Signed-off-by: Jason Etheridge Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm index 5174ed3090..ea204a3543 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm @@ -537,9 +537,9 @@ sub checkout_renew_common { my $item_details = OpenILS::Application::SIP2::Item->get_item_details( $session, barcode => $item_barcode); - push @{ $stub->{fields} }, {AJ => $item_details->{title}}; + push @{ $stub->{fields} }, {AJ => ($item_details->{title} || '')}; - return $stub unless $item_details; + return $stub unless $item_details && keys %{ $item_details }; my $patron_details = OpenILS::Application::SIP2::Patron->get_patron_details( $session, barcode => $patron_barcode); -- 2.11.0