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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 Jun 2020 12:31:37 +0000 (14:31 +0200)
commitc3365a35963742b294a4c8631b22aa34dac228d9
treec783deefc8cb6f0c77e8bce1f66fdb0e1822b149
parent251197ad73ba2be88ac2154db46748b58a0597f8
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>
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc