Bug 28805: (follow-up) Fix template logic error

This patch fixes a problem in the template logic that made the 'Due
date' legend display when `OnSiteCheckouts` and `SpecifyDueDate` are not
set, as highlighted by QA.

Sponsored-by: Banco Central de la República Argentina
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Fabricio Molina 2023-10-30 17:50:00 -03:00 committed by Tomas Cohen Arazi
parent 1cf021d961
commit 69c10412af
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 3 additions and 1 deletions

View File

@ -100,10 +100,11 @@
</li>
</ol>
</fieldset>
[% IF Koha.Preference('SpecifyDueDate') || Koha.Preference('OnSiteCheckouts') %]
<fieldset class="rows">
<legend>Due date</legend>
<ol>
[% IF Koha.Preference('SpecifyDueDate') %]
<legend>Due date</legend>
<li>
<label for="duedatespec">Hard due date: [% INCLUDE 'date-format.inc' %]</label>
<input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" class="flatpickr" data-flatpickr-enable-time="true"/>
@ -119,6 +120,7 @@
[% END %]
</ol>
</fieldset>
[% END %]
<input type="hidden" name="op" value="show" />
</fieldset>