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)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Mon, 13 Jul 2020 02:34:44 +0000 (14:34 +1200)
commit842346db0311e710c25f8c48ffa5b2242a272513
treec251e7c7666f43ea3000242e02e66c583ca46bb2
parent0425f6702f3b5d1e368e1fd557fd1d1c14993e93
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>
(cherry picked from commit 773dd857eed7e6eca01a8c098b973e20356157a3)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc