Bugzilla – Attachment 68847 Details for
Bug 19539
Editing rules that contain 'Unlimited' values produces invalid data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19539: (follow-up) Fix column index shift in cirulation rules
Bug-19539-follow-up-Fix-column-index-shift-in-ciru.patch (text/plain), 2.03 KB, created by
Jonathan Druart
on 2017-10-30 14:15:46 UTC
(
hide
)
Description:
Bug 19539: (follow-up) Fix column index shift in cirulation rules
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-10-30 14:15:46 UTC
Size:
2.03 KB
patch
obsolete
>From 83f87d7edf18f72fc5f4ea5dbc55deb11c220e7c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 30 Oct 2017 11:14:53 -0300 >Subject: [PATCH] Bug 19539: (follow-up) Fix column index shift in cirulation > rules > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 5 +++-- > 1 file changed, 3 insertions(+), 2 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 c1d5931f44..092a8eafb1 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 >@@ -67,10 +67,11 @@ $(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 = ''; >+ console.log(select_value); > if (typeof select_value === 'undefined'){ > select_value = '-1'; > }else { >@@ -78,7 +79,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') ); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19539
:
68719
|
68789
|
68846
|
68847
|
68879
|
68880
|
68883