Problem: If you have an entity type such as mailchimp_list which does not specify an access callback in its entity info, then all labels in your entityreference widget will be "Restricted access" and you cannot choose a maiclhimp list in a meaningful way.
Solution: entity_access() returns NULL if the entity type has no access callback, and in that case we should display the entity label as usual.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | entityreference-label-access-2200419-1.patch | 1.03 KB | klausi |
Comments
Comment #1
klausiPatch attached.
Comment #2
chris matthews commentedThe 5 year old patch to EntityReference_SelectionHandler_Generic.class.php does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.