From 842346db0311e710c25f8c48ffa5b2242a272513 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Thu, 18 Jun 2020 09:36:55 +0300 Subject: [PATCH] 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 Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit c3365a35963742b294a4c8631b22aa34dac228d9) Signed-off-by: Lucas Gass (cherry picked from commit 773dd857eed7e6eca01a8c098b973e20356157a3) Signed-off-by: Aleisha Amohia --- koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc index f1370a80b2..2a40fe5850 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -113,7 +113,7 @@ [% hold.date | $KohaDates %] [% END %] - + [% IF ( hold.found ) %] -- 2.39.5