From 954e4107c575a68f708f56ee6e11dd0f5cc28bab Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 23 May 2016 14:28:10 +0000 Subject: [PATCH] Bug 16569 - Message box for "too many checked out" is empty if AllowTooManyOverride is not enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If the limit for number of items checked out is reached, the message box shows up but is empty. Test Plan: 1) Disable AllowTooManyOverride 2) Check out items to a patron until the patron has reached the limit of checkouts he or she can have 3) Try to check out one more item 4) Note the empty message box 5) Apply this patch 6) Try to check out one more item again 7) Note the message is now visible Signed-off-by: Nicolas Legrand Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher (cherry picked from commit af43f91335b2258ea39b40247a1492ca41dafe2a) Signed-off-by: Frédéric Demians (cherry picked from commit a47180eb3bc0ca26a018f68ffcc4d5635f6f7789) Signed-off-by: Julian Maurice --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 8b8c09b8a1..ebb0a8b3c0 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -896,7 +896,7 @@ sub CanBookBeIssued { $needsconfirmation{current_loan_count} = $toomany->{count}; $needsconfirmation{max_loans_allowed} = $toomany->{max_allowed}; } else { - $needsconfirmation{TOO_MANY} = $toomany->{reason}; + $issuingimpossible{TOO_MANY} = $toomany->{reason}; $issuingimpossible{current_loan_count} = $toomany->{count}; $issuingimpossible{max_loans_allowed} = $toomany->{max_allowed}; } -- 2.20.1