Closed (fixed)
Project:
Entity reference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2013 at 11:33 UTC
Updated:
18 Apr 2013 at 09:10 UTC
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.