When saving the settings of an image field using the field_ui module I'm getting the following error:
Error: Call to a member function uuid() on null in Drupal\Core\Field\EntityReferenceFieldItemList->defaultValuesFormSubmit() (line 126 of core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php).
See https://www.drupal.org/project/drupal/issues/2833650 and https://www.drupal.org/project/mailchimp/issues/2949234
Currently some items for the default value get altered in a way that breaks the form.
Attached is a patch that checks if the items exist before altering them.
It would be good if someone who knows why the default_value gets altered checks that code block.
| Comment | File | Size | Author |
|---|---|---|---|
| required_api-broken_image_fields.patch | 802 bytes | alduya |
Comments
Comment #2
interdruper commentedYep, the patch fixes the problem. Thanks.
Comment #4
lord_of_freaks commented