From: Jason Stephenson Date: Tue, 14 Oct 2014 00:05:54 +0000 (-0400) Subject: Fix a problem with acceptitem in NCIP::ILS::Evergreen. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0f587d848bc6d39678916d3e7b2023bcb64e5654;p=working%2FNCIPServer.git Fix a problem with acceptitem in NCIP::ILS::Evergreen. There was a logical error when checking RequestedActionType for the "Hold For Pickup" action. Signed-off-by: Jason Stephenson --- diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 886ba9a..1a79281 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -209,7 +209,7 @@ sub acceptitem { $response->header($self->make_header($request)); # We only accept holds for the time being. - if ($request->{$message}->{RequestedActionType} !~ /^hold\w/i) { + if ($request->{$message}->{RequestedActionType} =~ /^hold\W/i) { # We need the item id or we can't do anything at all. my ($item_barcode, $item_idfield) = $self->find_item_barcode($request); if (ref($item_barcode) eq 'NCIP::Problem') {