From: Jason Stephenson Date: Sun, 14 Sep 2014 22:22:47 +0000 (-0400) Subject: Bump _problem_from_event's IQ by a couple of points. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=37b3f4120a04ddefa215642f5766e6dd3cb8d8ce;p=NCIPServer.git Bump _problem_from_event's IQ by a couple of points. Signed-off-by: Jason Stephenson --- diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 3cb590b..5ae3932 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -1850,9 +1850,6 @@ sub _problem_from_event { unless ($type) { if ($textcode) { $type = $textcode; - } else { - # Because we have to give them something. - $type = 'Temporary Processing Failure'; } } @@ -1876,8 +1873,8 @@ sub _problem_from_event { return NCIP::Problem->new( { - ProblemType => $type, - ProblemDetail => $detail, + ProblemType => ($type) ? $type : 'Temporary Processing Failure', + ProblemDetail => ($detail) ? $detail : 'Detail not available.', ProblemElement => ($element) ? $element : 'NULL', ProblemValue => ($value) ? $value : 'NULL' }