Bug 19539: (follow-up) Fix column index shift in cirulation rules
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 30 Oct 2017 14:14:53 +0000 (11:14 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 1 Nov 2017 16:10:14 +0000 (13:10 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt

index c1d5931..99c03d3 100644 (file)
@@ -67,7 +67,7 @@ $(document).ready(function() {
                 itm = $(this).text();
                 itm = itm.replace(/^\s*|\s*$/g,'');
                 var current_column = $("#edit_row td:eq("+i+")");
-                if ( i == 6 ) {
+                if ( i == 7 ) {
                     // specific processing for the Hard due date column
                     var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val();
                     var input_value = '';
@@ -78,7 +78,7 @@ $(document).ready(function() {
                     }
                     $(current_column).find("input[type='text']").val(input_value);
                     $(current_column).find("select").val(select_value);
-                } else if ( i == 12 ) {
+                } else if ( i == 13 ) {
                     // specific processing for cap_fine_to_replacement_price
                     var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
                     $('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') );