Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We're using this module along with entityreference to reference specific entities. When entering something like "asdasd (0)" in the reference field, references_dialog generates an error.
EntityMalformedException: Permission to create a node was requested but no node type was given. in entity_metadata_no_hook_node_access() (line 680 of sites/all/modules/contrib/entity/modules/callbacks.inc).
This is caused because references_dialog_entityreference_edit_link() does not check if the references entity is valid after it uses entity_load().
Comment | File | Size | Author |
---|---|---|---|
#2 | referencing_invalid-2878487-2.patch | 1.01 KB | SpaghettiBolognese |
Comments
Comment #2
SpaghettiBolognese CreditAttribution: SpaghettiBolognese at Emble commentedComment #3
imyaro CreditAttribution: imyaro at DrupalJedi commentedFaced the same error.
Tested, works well.