From dfbaab4912237509c0d9a411c33f7f0cbd7b2fa3 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sun, 14 Sep 2014 16:51:34 -0400 Subject: [PATCH] Fix text_code for textcode typo in NCIP::ILS::Evergreen. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.'; -- 2.43.2