Bugzilla – Attachment 46701 Details for
Bug 15569
Automatic renewal should not be displayed if the patron cannot checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15569: Do not displayed "automatic renewal" if the patron cannot checkout
Bug-15569-Do-not-displayed-automatic-renewal-if-th.patch (text/plain), 2.35 KB, created by
Kyle M Hall (khall)
on 2016-01-15 15:39:00 UTC
(
hide
)
Description:
Bug 15569: Do not displayed "automatic renewal" if the patron cannot checkout
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-01-15 15:39:00 UTC
Size:
2.35 KB
patch
obsolete
>From 1258c11637f06f6ce730531520e8f3136ebdd356 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 13 Jan 2016 16:36:47 +0000 >Subject: [PATCH] Bug 15569: Do not displayed "automatic renewal" if the patron > cannot checkout >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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. > >Patch works as expected. >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../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 <span class="ex">[% message %]</span> > [% END %] > <button type="submit" class="btn">Check out</button> > >- <div class="date-select"> >- [% IF NEEDSCONFIRMATION %] >- <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> >- [% ELSE %] >- <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" /> >- [% END %] >- <label for="auto_renew">Automatic renewal</label> >- </div> >+ [% UNLESS flagged and noissues %] >+ <div class="date-select"> >+ [% IF NEEDSCONFIRMATION %] >+ <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> >+ [% ELSE %] >+ <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" /> >+ [% END %] >+ >+ <label for="auto_renew">Automatic renewal</label> >+ </div> >+ [% END %] > > [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] > [% IF ( SpecifyDueDate ) %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15569
:
46594
|
46613
|
46658
| 46701 |
118077