From 8b878eb5ab2e939cfb58c29f2b23d4d6174a82d7 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 18 Oct 2023 01:38:54 +0000 Subject: [PATCH] Bug 8367: (follow-up) Fix for circ rules editor Make sure holds pickup period field is empty when editing a 'default' rule. Signed-off-by: Kelly --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 3 ++- 1 file changed, 2 insertions(+), 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 feed1f5b5a..416f12b50e 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 @@ -1541,13 +1541,14 @@ // Remove potential previous input added $(current_column).find("input").remove(); $(current_column).append(""); - } else if ( i == 5 || i == 6 || i == 26 || i == 27 || i == 28 ) { + } else if ( i == 5 || i == 6 || i == 26 || i == 27 || i == 28 || i == 31 ) { // If the value is not an integer for // - "Current checkouts allowed" // - "Current on-site checkouts allowed" // - "Holds allowed (total)" // - "Holds allowed (daily)" // - "Holds per record (count)" + // - "Holds pickup period (day)" // The value is "Unlimited" (or an equivalent translated string) // an it should be set to an empty string if( !((parseFloat(itm_text) == parseInt(itm_text)) && !isNaN(itm_text)) ) { -- 2.30.2