[Koha-bugs] [Bug 30713] Patron entry should limit date of birth selection to dates in the past

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 10 16:31:22 CEST 2022


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

--- Comment #5 from Owen Leonard <oleonard at myacpl.org> ---
> This does change the calendar widget, but clicking on 'Yesterday' clears an
> existing date in the input field and doesn't put yesterday's date

Further investigation shows that this is a bug in our Flatpickr implementation,
not with the change I've made to this particular template. See the "Patrons
with no checkouts" report (/cgi-bin/koha/reports/borrowers_out.pl) which has a
similarly-configured date picker.

While debugging this I did see that I'd missed one of the options Jonathan
implemented in Flatpickr: a "pastinclusive" option which limits to dates in the
past OR today. This is both more correct for this situation and working
correctly, so I have resubmitted with this change.

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


More information about the Koha-bugs mailing list