Koha/koha-tmpl/intranet-tmpl/prog
Jonathan Druart 44ddbf8ec7 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@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-25 13:56:30 +02:00
..
css Bug 29052: Compiled CSS 2021-10-21 12:24:04 +02:00
en Bug 29241: Allow display of past date for .futuredate 2021-10-25 13:56:30 +02:00
img Bug 28321: Use template block for display of items in search results 2021-10-05 10:58:13 +02:00
js Bug 28180: Fix collision with existing verify_images 2021-10-21 12:24:04 +02:00
pdf
sound