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)
committerFrédéric Demians <f.demians@tamil.fr>
Wed, 27 Apr 2016 14:27:03 +0000 (16:27 +0200)
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
(cherry picked from commit 873a49f13b79bf1f5f7163f217cfc3a317ce602f)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 702002129787ceb2cdae61f6dc2352dff1afa84d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>

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

index 12fc1f2..db18df9 100644 (file)
@@ -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') ) {