Bugzilla – Attachment 68880 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.08 KB, created by
Kyle M Hall (khall)
on 2017-11-01 14:45:55 UTC
(
hide
)
Description:
Bug 19539: (follow-up) Fix column index shift in cirulation rules
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-11-01 14:45:55 UTC
Size:
2.08 KB
patch
obsolete
>From 1082dd3b829ed9c57048940ab74cbc605e4dfa06 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> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > 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 c1d5931..092a8ea 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.10.2
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