From 8c83fa0bc67690f388f5e968095b6d55ef18a70f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 27 Sep 2017 13:07:59 -0300 Subject: [PATCH] Bug 19259: Enforce type of the delay value when editing overdue rules - template side only Overdue rules do not save when a delay that is not an integer > 0, without any warnings. This patch forces the user to select a number > 0. Test plan: Without this patch applied, enter non-integer value or negative or 0 => The rule will not be inserted without any warnings. With this patch applied you will get an message from the browser and the form will not save Signed-off-by: David Bourgault Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt index c780f30b26..bb6e82412e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt @@ -112,7 +112,7 @@ $(document).ready(function() { [% value.line %] - +