From c518f93f354674af51352b0b609e76c2f45ec134 Mon Sep 17 00:00:00 2001 From: Sophie Meynieux Date: Wed, 28 Dec 2016 15:04:51 +0100 Subject: [PATCH] Bug 17818 - Duplicating a subfield yields an empty subfield tag [follow-up] The problem is the same as Bug 17477 but also for dropdown selection list Steps to reproduce error: - On the cataloging screen (basic screen), create a new record - Go to a field with repetable subfields and associated with authorised values - Select a value for the subfield 583$x) - Clone the subfield - select another value for the new subfield - Save the record - Edit the record to modify => the clone subfield has desappeared. If you look in DB in marcxml, the subfield is present but without code - Apply patch - Clean cache browser and reload page - Repeat steps above - Verify that works as expected https://bugs.koha-community.org/show_bug.cgi?id=17818 --- koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js index ee03961..39f3128 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -281,6 +281,7 @@ function CloneSubfield(index, advancedMARCEditor){ id_input = selects[i].getAttribute('id')+new_key; selects[i].setAttribute('id',selects[i].getAttribute('id')+new_key); selects[i].setAttribute('name',selects[i].getAttribute('name')+new_key); + linkid = id_input; } // textarea -- 1.9.1