[Koha-bugs] [Bug 30718] Use flatpickr's altInput option everywhere

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 19 11:45:13 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30718

--- Comment #107 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 139467
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139467&action=edit
Bug 30718: (QA follow-up) KohaDates filter on inputs

Found another one on a visible input. Replaced with html filter.
koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt:         
                                  <input type="text"
class="enrolmentperioddate" name="enrolmentperioddate" id="enrolmentperioddate"
value="[% category.enrolmentperioddate | $KohaDates %]" />

But we also have a few hidden ones. First verified that cleanborrowers did not
work anymore with expirydate.
Fixed it with passing iso dateformat to resolve.
intranet-tmpl/prog/en/modules/acqui/parcels.tt:            <input type="hidden"
name="shipmentdate" value="[% shipmentdate | $KohaDates %]" />
intranet-tmpl/prog/en/modules/serials/subscription-add.tt:                     
                    <input type="hidden" id="acqui_date" name="firstacquidate"
value="[% firstacquidate | $KohaDates %]"/>
intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt:                 
                  <input type="hidden" name="new_hard_due_date" value="[%
new_hard_due_date | $KohaDates %]" />
intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt:            <input
type="hidden" name="not_borrowed_since" value="[% not_borrowed_since |
$KohaDates %]" />
intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt:            <input
type="hidden" name="last_issue_date" value="[% last_issue_date | $KohaDates %]"
/>
intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt:            <input
type="hidden" name="borrower_dateexpiry" value="[% borrower_dateexpiry |
$KohaDates %]" />
intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt:                <input
type="hidden" name="borrower_lastseen" value="[% borrower_lastseen | $KohaDates
%]" />

Test plan:
Try cleanborrowers with expiry date.
cd koha-tmpl; git grep "<input.*\$KohaDates" | grep -v iso

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list