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.

Comments

jojonaloha’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

Attached patch falls back to the $instance['bundle'] when $entity is not set; like when adding a subqueue.

amateescu’s picture

Status: Needs review » Reviewed & tested by the community

Nice find :)

jojonaloha’s picture

Status: Reviewed & tested by the community » Fixed

Committed 555b493

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.