From 2719e0156a87fe5c6d94fd5b21e7a0d9c4247d69 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sat, 27 Sep 2014 12:51:18 -0400 Subject: [PATCH] More NCIP::ILS::Evergreen->requestitem() improvements. We check if item is a NCIP::Problem and return it if it is. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 82bd251..5d588b3 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -1075,6 +1075,9 @@ sub requestitem { ); } return $response; + } elsif (ref($item) eq 'NCIP::Problem') { + $response->problem($item); + return $response; } # See if we were given a PickupLocation. -- 2.43.2