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.
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 CreditAttribution: 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.