Closed geertjanknapen1 closed 1 year ago
To reproduce, you have to make the responsive fieldtype listable.
Disabling this option will make the entries selectable. However I understand that this is a workaround, not a fix.
This should be fixed in v4.1.1.
I also noticed you have, from what I could tell, incorrect setup. This addon requirement in composer.json
is for Statamic CMS to be ^4.0
, but your CMS version is 3.4.7 PRO
, which should not be possible. Just making sure your project is setup correctly because this addon no longer supports Statamic v3.
Bug description
I have a blueprint for News items that contains a required responsive image field. If that field is empty, but the entry is saved (if the asset that used to be there is deleted for example).
When trying to display the choice menu to link entries from X collection to another entry I get an error. It happens before even selecting an entry because it does not even show the entries.
I don't understand why, when selecting an entry to link to an Entries field, it needs to know about the assets. Is there a way to get around this? It just does not make sense to prevent linking to an Entry because that entry is missing an image, it also breaks linking to any other entries (regardless of collection) if there is an entry missing for only one item.
Say I have 50 items. I show 10 per page. the first 15 items have no missing images. The 16th does, then I can only access page one of the menu where I can link entries, after that it breaks. So if the first 20 items are of collection news item and the other 30 are products, I can never link to a products because the image for a news item is missing.
How to reproduce
Create a collection (Lets call this collection NewsItems) that contains at least a required responsive images field. Upload an image to Statamic. Create an entry in the NewsItems collection and upload that image in the required responsive image field. Delete the image you uploaded
Create a collection with an Entries fieldtype that links to the NewsItems collection. Create an entry in the newly create collection and try to link an existing NewsItem in the Entries fieldtype.
Logs
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
regex (default)
Additional details
Multisite setup. Content (Entries, taxonomies, etc.) is saved in a database (hence the eloquent-driver package). Blueprints are stored on disk still.