Bug 17477: Duplicating a subfield yields an empty subfield tag
The problem only when clone a textareas in 5XX Steps to reproduce error: - On the cataloging screen (basic screen), create a new record - Go to the 5xx fields - Put something on the 521$a subfield or other textareas (e.g. 520$u or 583$x) - Clone the subfield => FAIL: The subfield correctly doesn't include the original data, BUT it doesn't have the subtield tag either. - Apply patch - Clean cache browser and reload page - Repeat steps above - Verify that works as expected Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> (cherry picked from commitfbe75e66cc) Signed-off-by: Frédéric Demians <f.demians@tamil.fr> (cherry picked from commit90e9ab941e) Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
19d0de6597
commit
6efb6830a2
|
|
@ -288,6 +288,7 @@ function CloneSubfield(index, advancedMARCEditor){
|
|||
id_input = textareas[i].getAttribute('id')+new_key;
|
||||
textareas[i].setAttribute('id',textareas[i].getAttribute('id')+new_key);
|
||||
textareas[i].setAttribute('name',textareas[i].getAttribute('name')+new_key);
|
||||
linkid = id_input;
|
||||
}
|
||||
|
||||
// Handle click event on buttonDot for plugin
|
||||
|
|
|
|||
Loading…
Reference in New Issue