Bugzilla – Attachment 48163 Details for
Bug 15838
syspref SubscriptionDuplicateDroppedInput does not work for all fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15838 - Subscription duplicating: Reset fields from SubscriptionDuplicateDroppedInput syspef by getting them using name instead of id
Bug-15838---Subscription-duplicating-Reset-fields-.patch (text/plain), 1.10 KB, created by
Alex Arnaud
on 2016-02-17 11:27:42 UTC
(
hide
)
Description:
Bug 15838 - Subscription duplicating: Reset fields from SubscriptionDuplicateDroppedInput syspef by getting them using name instead of id
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2016-02-17 11:27:42 UTC
Size:
1.10 KB
patch
obsolete
>From 95af1e1dcca5dde55de48a833a0d458a344d5628 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Wed, 17 Feb 2016 12:27:14 +0100 >Subject: [PATCH] Bug 15838 - Subscription duplicating: Reset fields from > SubscriptionDuplicateDroppedInput syspef by getting them using name instead > of id > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >index 39c809c..def7b79 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >@@ -451,7 +451,7 @@ $(document).ready(function() { > > var node; > [% FOREACH field IN dont_export_field_loop %] >- node = $("#[% field.fieldid %]"); >+ node = $("[name='[% field.fieldid %]']"); > if ( $(node).is('input') || $(node).is('textarea') ) { > $(node).val(""); > } else if ( $(node).is('select') ) { >-- >2.7.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 15838
:
48163
|
49526
|
49565