Issue with selections + single cardinality

Created on 8 November 2016, about 8 years ago
Updated 20 March 2023, almost 2 years ago

I'm finding that if I have the widget mode set to 'Edit selection' and my field cardinality is set to 1, the 'Selections' in the modal can still display multiple files. I would expect that this not be the case.

It looks like the validation on the server doesn't really check this before just doing an array_merge to put the new selection in with the existing selections.

It is likely that the more general cardinality case wants to be solved here (i.e. cardinality > 1 and not infinite), but that's a different set of problems once you add in the prepend/append mode options etc. So I'm going to keep this ticket on track for this particular single selection problem.

🐛 Bug report
Status

Active

Version

1.0

Component

Widget selector plugins

Created by

🇬🇧United Kingdom amoebanath

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024