From a5d485a5edac26a96d676ec23d1dbf4d87fea32a Mon Sep 17 00:00:00 2001 From: Petro Vashchuk Date: Wed, 4 Sep 2024 16:45:57 +0300 Subject: [PATCH] Bug 37832: Fix Rental discount to be decimal like other similar fields Added decimal input_mode and pattern for "Rental discount (%)" so it functions same way as "Fine amount" or "Overdue fines cap (amount)" rules, allowing user to save decimals only. 1. Go to Circulation and fine rules page and save some gibberish into "Rental discount (%)", see that it allows you to do that. 2. Apply the patch, and try same thing again, this time it should only allow you to save decimal numbers. Signed-off-by: Olivier V Signed-off-by: Lisette Scheer Signed-off-by: Katrin Fischer (cherry picked from commit 143220d0c6d2d82bc007be029221ee3ede676f2f) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt index e4acb35b38..969fd5cee3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -538,7 +538,7 @@ [% END %] - + [% IF Koha.Preference('UseRecalls') %]