]> git.koha-community.org Git - koha.git/commit
Bug 36156: None value selected on clone field/subfield linked to AV
authorThibaud Guillot <thibaud.guillot@biblibre.com>
Fri, 23 Feb 2024 12:12:42 +0000 (13:12 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 19 Mar 2024 15:05:58 +0000 (15:05 +0000)
commit5bfa03865205a8dc086a3d9d763605cfb3aa87ac
tree01b3cbe3efde0c90a1a183bca321d67c70d99e74
parent922928eb7def8016abdcb4a8b8396858421b9f71
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@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ed037fb2740418816b192abe06a250193ad05e40)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 4d7df951f3572ca7063f5bbd869618b29e6e8607)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/cataloging.js