From 3ff0e13a7fde43438bb4e1d4e1ea19b8c3b7265f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 5 Nov 2015 09:58:34 +0000 Subject: [PATCH] Bug 15091: Do not allow to use batch checkout if checkout is not allowed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If the noissue param is passed to the template, the batch checkout should not be allowed. This patch globally fixes the problem raised by bug 15091. A generic message "cannot check out" is displayed and some more specific ones could be added later. For now it only trigger the "fine balance is over the limit" message. Test plan: Confirm there is no regression on the original behavior and that the issue raised on bug 15091 is fixed. Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/circ/circulation_batch_checkouts.tt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt index ade63f6222..cf04b5e161 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt @@ -63,6 +63,13 @@ $(document).ready(function() { [% IF NOT batch_allowed %]
You are not allowed to use batch checkout for this patron
+[% ELSIF noissues and not checkout_infos %] +
+ Cannot check out! + [% IF charges_is_blocker %] + Checkouts are BLOCKED because fine balance is OVER THE LIMIT. + [% END %] +
[% ELSIF NOT checkout_infos %]
-- 2.39.5