Bug 25789: Don't allow past date as holds expiration date
authorEmmi Takkinen <emmi.takkinen@outlook.com>
Thu, 18 Jun 2020 06:36:55 +0000 (09:36 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 10 Jul 2020 16:28:00 +0000 (16:28 +0000)
commit773dd857eed7e6eca01a8c098b973e20356157a3
tree9b8711fe81da4157d3ada5c7ae912c53964636cd
parent3fdec870573700d2d0d585b7453f279c25e116a1
Bug 25789: Don't allow past date as holds expiration date

When editing existing holds expiration date it's possible to select
past date from datepicker. This patch changes expiration inputs class
as "datepickerto" to make past dates unselectable.

To test:
1.  Find item with holds
2.  Edit holds expiration date
=> Note that past dates are selectable
3. Apply patch
4. Edit again
=> Past dates are no longer selectable

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit c3365a35963742b294a4c8631b22aa34dac228d9)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc