When an entity reference field is created with an entity target type, if the module providing that entity type is disabled, you get errors like these in the original entity edit form:
Fatal error: Class name must be a valid object or a string in \includes\common.inc on line 7894
This is because the widget should not be loaded in case the entity referenced in target type doesn't exist anymore.
Patch attached.
Related: #1864982: Error message when trying to edit an order
| Comment | File | Size | Author |
|---|---|---|---|
| entity_reference-widget_check.patch | 825 bytes | pcambra |
Comments
Comment #1
amitaibuCommitted, thanks.
Comment #2
pcambraThanks!
We might want to check the formatters as well.