-
-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-select input shows selected options as a single array #11333
Comments
PR #11332 |
I can't seem to reproduce this... what does the field look like in your blueprint's YAML file? |
The value returns a collection, so it doesn't seem to break it down.
|
You can recreate the behaviour with the following:
|
Your computed field needs to return an array, not a collection (it needs to return data in the same format it'd come back from a file). In your case, if you're purely getting the value of that other field, you can use the Statamic::booted(function () {
Collection::computed('playground', 'listing_fallback_colours_collection', function ($entry, $value) {
return $entry->get('listing_fallback_colours');
});
}); |
@duncanmcclean We have been using Runway and a recent update changed things so that collections are no longer cast to arrays when preparing models for the publish form. Since one of our models provides a collection of strings like the example above, the select field type no longer functions correctly. |
Can you open an issue on the Runway repo? |
Bug description
Multi-select input shows multiple selected options as a single array, instead of as individual values.
How to reproduce
Create a multi select input
Select multiple values
Save
Refresh
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: