From 29ceec7a0b5277bb06f2480053cf6da0888e5ffb Mon Sep 17 00:00:00 2001 From: Alex Arnaud 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 --- 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