Issue with selections + single cardinality

Created on 8 November 2016, over 7 years ago
Updated 20 March 2023, over 1 year 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.69.0 2024