When creating a new subqueue, if I enter an entity label and click "Add item", the change does not show up in the table. Refreshing the page shows an error:
The referenced entity (node: 22956) is invalid.
It turns out that the selected node was not in the queue type, but the EntityReference_SelectionHandler_EntityQueue() isn't filtering the list properly.
Also, I'm not sure if this matters or not, but I'm using the entityconnect module, which I'm not sure if this is a bug in their module or not, but I noticed that it calls entityreference_get_selection_handler() sometimes with only $field and sometimes only with $field and $instance.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | entityqueue-referenced-entity-invalid-2154109-1.patch | 1.15 KB | jojonaloha |
Comments
Comment #1
jojonaloha commentedAttached patch falls back to the $instance['bundle'] when $entity is not set; like when adding a subqueue.
Comment #2
amateescu commentedNice find :)
Comment #3
jojonaloha commentedCommitted 555b493