[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 12:53:55 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36156

--- Comment #3 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 162430
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162430&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

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list