[Koha-bugs] [Bug 29241] Flatpickr not displaying date in the past for futuredate
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 21 19:42:32 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29241
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #126473|0 |1
is obsolete| |
--- Comment #8 from David Nind <david at davidnind.com> ---
Created attachment 126674
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126674&action=edit
Bug 29241: Allow display of past date for .futuredate
When a past date is set for a flatpickr instance with the .futuredate
class, only dates in the future are available AND the input is blanked.
It does not display the date in the past.
For instance if a hold is expired (expirationdate in the past), the date input
will be blanked.
We can use the flatpickr's allowInvalidPreload option to allow date in the past
to be displayed.
Test plan:
Place a hold
Edit its expirationdate and set a date in the past (yesterday is fine)
Go to /reserve/request.pl?biblionumbers=42
=> With the patch you see the date, and the widget let you chose anoter date,
in the future
=> Without this patch the expiration date is not displayed
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list