From: Jason Stephenson Date: Sat, 27 Sep 2014 16:51:18 +0000 (-0400) Subject: More NCIP::ILS::Evergreen->requestitem() improvements. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2719e0156a87fe5c6d94fd5b21e7a0d9c4247d69;p=NCIPServer.git 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 --- 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.