From 02eae879ebf8bab98010b92e9913a79264185533 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 29 Apr 2024 15:18:26 +0000 Subject: [PATCH] Bug 36708: Fix column index for processing No automatic renewal after To test: 1- Find or create a circulation rule with a 'Holds allowed (total)' limit of 3 (or another number) and no value in 'No automatic renewal after (hard limit)' 2- Select to edit the rule, and note that 'No automatic renewal after (hard limit)' box in the editing line is now populated with a date 3- Note also that 'Holds allowed (total)' is empty in your editing line 4- If you save your edits without clearing the new 'No automatic renewal after (hard limit)' date, it will save as part of the rule. Also, 'Holds allowed (total)' will save as Unlimited unless you re-add your numerical value. 5- APPLY PATCH 6- Try again, the values should save corrected and not erroneously fill the No automatic renewal after (hard limit) column. Signed-off-by: Andrew Fuerste Henry Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- 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 6e792e0cc0..8d0562edab 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 @@ -1517,7 +1517,7 @@ hardduedate = fp.parseDate( hardduedate, flatpickr_dateformat_string ); if( hardduedate) fp.setDate( hardduedate, 1 ); } - } else if ( i == 26 ) { + } else if ( i == 25 ) { // specific processing for No automatic renewal after (hard limit) var renewdate = itm_text; if (renewdate) { -- 2.39.5