Closed brew-olly closed 5 months ago
I noticed that the collections/asset container dropdown in the blueprint settings now return an empty array []
if no asset container or collection is selected, instead of null
. Therefore the check in the asset fieldtype fails, because it checks for null
and thus tries to link assets too. So maybe it is related to all places where a Dropdown is used in the UI 🤔
This doesn't seem to be an issue for the collection
config, but I guess this config expected null
before as well.
Bug description
Since updating to v5.7.0 I've been encountering the error
An asset container has not been configured
when trying to create/edit entries in some of my collections.After some testing I found out that it was caused by my
link
field not having an asset container configured, despite not explicitly requiring one like anasset
field does.Once I populated the
container
property the error stopped happening and I could create/edit entries.How to reproduce
Create a new collection
Edit the blueprint to add a
link
field with an emptycontainer
property.Attempt to create an entry in this new collection, it should error.
Modify the collection's blueprint to include a value for the
link
field'scontainer
property.Try again to create an entry, the error should not appear.
Logs
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response