From: Jason Stephenson Date: Sun, 14 Sep 2014 20:51:34 +0000 (-0400) Subject: Fix text_code for textcode typo in NCIP::ILS::Evergreen. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dfbaab4912237509c0d9a411c33f7f0cbd7b2fa3;p=NCIPServer.git Fix text_code for textcode typo in NCIP::ILS::Evergreen. Signed-off-by: Jason Stephenson --- diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 0a2bf37..4766ca7 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -1500,7 +1500,7 @@ sub place_hold { } } elsif ($r->{last_event}) { $hold = _problem_from_event('Request Not Possible', $r->{last_event}); - } elsif ($r->{text_code}) { + } elsif ($r->{textcode}) { $hold = _problem_from_event('Request Not Possible', $r); } else { $hold = _problem_from_event('Request Not Possible'); @@ -1827,11 +1827,11 @@ sub _problem_from_event { # This block will likely need to get smarter in the near future. if ($evt) { - if ($evt->{text_code} eq 'PERM_FAILURE') { + if ($evt->{textcode} eq 'PERM_FAILURE') { $detail = 'Permission Failure: ' . $evt->{ilsperm}; $detail =~ s/\.override$//; } else { - $detail = 'ILS returned ' . $evt->{text_code} . ' error.'; + $detail = 'ILS returned ' . $evt->{textcode} . ' error.'; } } else { $detail = 'Detail not available.';