[Koha-bugs] [Bug 36156] Duplicate selected value when a field or subfield is cloned
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 26 10:03:18 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36156
Thibaud Guillot <thibaud.guillot at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #162376|0 |1
is obsolete| |
--- Comment #2 from Thibaud Guillot <thibaud.guillot at biblibre.com> ---
Created attachment 162421
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162421&action=edit
Bug 36156 : None value selected on clone field/subfield linked to AV
When a field or subfield is linked to a list of authorized values and cloned,
the selected value is repeated in the clone. This is linked to the default
behavior of Select2Utils, so I've added a precise index (-1) to ensure that no
value is selected in the clone.
Test plan:
1) Create a repeatable field and subfield and link a list of authorised values
to the subfield.
2) Edit a record, clone the field and see which value is automatically selected
in the clone.
3) Apply the patch
4) Repeat step 2
Sponsored by : BibLibre
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list