From 8a77af1215516165fb44d5c0f04ae80d570c2216 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=utf8 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 Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com (cherry picked from commit 873a49f13b79bf1f5f7163f217cfc3a317ce602f) Signed-off-by: Julian Maurice (cherry picked from commit 702002129787ceb2cdae61f6dc2352dff1afa84d) Signed-off-by: Frédéric Demians --- .../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 12fc1f218b..db18df99a7 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 @@ -448,7 +448,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.39.5