From 72c5c79ad9a68fee759dcfa2dcdd964b70909608 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Jan 2016 16:36:47 +0000 Subject: [PATCH] Bug 15569: Do not displayed "automatic renewal" if the patron cannot checkout If the patron cannot checkout (debarred) and on-site checkout is enabled, the "Automatic renewal" checkbox should not be displayed on the circulation screen. Test plan: Enable OnSiteCheckouts and OnSiteCheckoutsForce Debar a patron and go on the circulation page. Without this patch, the automatic renewal checkbox is displayed. With this patch applied, it's not. --- .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 7c5573a..aed413c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -633,14 +633,17 @@ No patron matched [% message %] [% END %] -
- [% IF NEEDSCONFIRMATION %] - - [% ELSE %] - - [% END %] - -
+ [% UNLESS flagged and noissues %] +
+ [% IF NEEDSCONFIRMATION %] + + [% ELSE %] + + [% END %] + + +
+ [% END %] [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] [% IF ( SpecifyDueDate ) %] -- 2.1.0