Bug 15838 - Subscription duplicating: Reset fields from SubscriptionDuplicateDroppedI...
authorAlex Arnaud <alex.arnaud@biblibre.com>
Wed, 17 Feb 2016 11:27:14 +0000 (12:27 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Fri, 25 Mar 2016 21:13:19 +0000 (21:13 +0000)
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>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com

koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt

index 99cf15d..1d47739 100644 (file)
@@ -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') ) {