From dc89dfd0d2b9d201d0495a11f18d413381f226ff Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sun, 7 Sep 2014 21:14:32 -0400 Subject: [PATCH] Fix a logic error in NCIP::ILS::Evergreen->acceptitem. This is embarrassing: I had =~, when I really wanted !~, when checking the value of RequestedActionType. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index aebe23d..558890a 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -346,7 +346,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') { -- 2.43.2