From fc0b96ee38877e8bcd62c7793adb3c5c7091f42c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 22 Oct 2015 14:32:04 -0400 Subject: [PATCH] Bug 7560 [QA Followup] - Fix string name conflict, add screen message --- C4/SIP/ILS/Transaction/Renew.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/C4/SIP/ILS/Transaction/Renew.pm b/C4/SIP/ILS/Transaction/Renew.pm index 66bdb6e..1cda050 100644 --- a/C4/SIP/ILS/Transaction/Renew.pm +++ b/C4/SIP/ILS/Transaction/Renew.pm @@ -48,7 +48,7 @@ sub do_renew_for { unless ( C4::Accounts::GetTotalFines($borrower->{borrowernumber}) < C4::Context->preference('OPACFineNoRenewals') ) { $renewokay = 0; - $renewerror = 'too_many_fines' + $renewerror = 'fines_exceed_OPACFineNoRenewals' } if ($renewokay){ @@ -62,6 +62,7 @@ sub do_renew_for { } else { $renewerror=~s/on_reserve/Item unavailable due to outstanding holds/; $renewerror=~s/too_many/Item has reached maximum renewals/; + $renewerror=~s/fines_exceed_OPACFineNoRenewals/Total fines owed exceeds amount that would allow renewal/; $self->screen_msg($renewerror); $self->renewal_ok(0); } -- 1.7.2.5