Skip to content

Conversation

@simonworkhouse
Copy link
Contributor

Following on from #11333 and the related PR statamic-rad-pack/runway#654 this fix ensures that the HasSelectOptions field type trait correctly casts pre-processed values to an array even if they are collections.

This addresses issues caused both when extending a select fieldtype to utilise collections and issues caused by Runway changes where collection values are no longer being cast to arrays.

Fixes #11333
Replaces statamic-rad-pack/runway#654

@simonworkhouse simonworkhouse changed the title Fix values being wrapped in arrays causing multiple selected options [5.x] Fix values being wrapped in arrays causing multiple selected options Mar 28, 2025
@ozmos
Copy link

ozmos commented Apr 28, 2025

Any progress on this? Would be super helpful

@cameronjdavis
Copy link

+1

@duncanmcclean
Copy link
Member

Sorry, we don't have an ETA for reviewing/merging this pull request. We'll get to it when we can.

In the meantime, you can pull this PR into your project with a composer patch.

@jasonvarga jasonvarga merged commit 6fceebd into statamic:5.x May 20, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multi-select input shows selected options as a single array

5 participants