From c9f08fa0ba891f11695951be54a00e4a235dda9f Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 17 Nov 2023 10:18:01 +0000 Subject: [PATCH] Bug 35341: Testing Content-Type: text/plain; charset=utf-8 --- .../prog/en/modules/admin/smart-rules.tt | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) 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 00de0896bc..74c962503b 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 @@ -475,7 +475,7 @@ - +
[% INCLUDE 'date-format.inc' %]
@@ -1502,17 +1502,13 @@ // specific processing for the Note column var note = $(this).find("a[name='viewnote']").data("content"); $(current_column).find("input[type='text']").val(note); - } else if ( i == 9 ) { - // specific processing for the Hard due date column - var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); - var input_value = ''; - if (typeof select_value === 'undefined'){ - select_value = '-1'; - }else { - input_value = itm_text.split(' ')[1]; + } else if ( i == 9 || i == 26 ) { + // specific processing for Hard due date and No automatic renewal after (hard limit) + if (itm_text) { + input_values = itm_text.split(' '); + $(current_column).find("input[type='text']").val( input_values[1] ); + $(current_column).find("select").val(itm_code); } - $(current_column).find("input[type='text']").val(input_value); - $(current_column).find("select").val(select_value); } else if ( i == 16 ) { // specific processing for cap_fine_to_replacement_price var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); -- 2.30.2