Bugzilla – Attachment 49526 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.43 KB, created by
Marc Véron
on 2016-03-24 09:58:18 UTC
(
hide
)
Description:
Bug 15838 - Subscription duplicating: Reset fields from SubscriptionDuplicateDroppedInput syspef by getting them using name instead of id
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-03-24 09:58:18 UTC
Size:
1.43 KB
patch
obsolete
>From 29ceec7a0b5277bb06f2480053cf6da0888e5ffb 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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >How I tested: >Verified bug with start and end date (were not cleared without patch). >After applying the patch all fields defined in SubscriptionDuplicateDroppedInput >were cleared as expected. > >Signed-off-by: Marc Véron <veron@veron.ch> >--- > 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 99cf15d..1d47739 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') ) { >-- >1.7.10.4
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