You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a Dictionary fieldtype in a blueprint and used the example provided by php please make:dictionary to create custom content for the dropdown. The array for content to the dropdown looks like this:
Now when I create an entry in the collection where this dictionary-fieldtype is in use things are getting weird. If empty/new then I can add all options once, and not able to select any duplicates. When I save and edit the same entry I can add them again which ends up in duplicates. When deleting every item with the same key/value is removed.
Here is a video of what happens:
Screen.Recording.2024-08-28.at.09.34.33.mp4
How is this supposed to work? I was hoping it would be in the same way as a taxonomy fieldtype.
How to reproduce
Not able to share repo as it is private, but I can provide more code examples if needed.
Bug description
I added a Dictionary fieldtype in a blueprint and used the example provided by
php please make:dictionary
to create custom content for the dropdown. The array for content to the dropdown looks like this:["label" => $content["name"], "value" => $content["organization_number"], "url" => $content["url"]]
Now when I create an entry in the collection where this dictionary-fieldtype is in use things are getting weird. If empty/new then I can add all options once, and not able to select any duplicates. When I save and edit the same entry I can add them again which ends up in duplicates. When deleting every item with the same key/value is removed.
Here is a video of what happens:
Screen.Recording.2024-08-28.at.09.34.33.mp4
How is this supposed to work? I was hoping it would be in the same way as a taxonomy fieldtype.
How to reproduce
Not able to share repo as it is private, but I can provide more code examples if needed.
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: