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.
Patch works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit ca6bd89b85)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
93123845ab
commit
3a79e99b70
|
|
@ -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 ) %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue