Bug 15838 - Subscription duplicating: Reset fields from SubscriptionDuplicateDroppedInput syspef by getting them using name instead of id

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 873a49f13b)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Alex Arnaud 2016-02-17 12:27:14 +01:00 committed by Julian Maurice
parent 11ba21369d
commit 7020021297
1 changed files with 1 additions and 1 deletions

View 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') ) {