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.
Currently, using other fields defining their widgets to be those of Entity Reference fails with a denied access because the module makes sure the field for which the lookup is being done is an instance of EntityReference.
It should rather only check that the widget being used is declared as a widget for the EntityReference field (think duck typing).
Comment | File | Size | Author |
---|---|---|---|
#7 | 14156560-entityreference_autocomplete_access-7.patch | 3.36 KB | fgm |
#5 | 14156560-entityreference_autocomplete_access.patch | 3.36 KB | fgm |
#1 | entityreference_autocomplete_access-1416560-2.patch | 3.42 KB | fgm |
Comments
Comment #1
fgmAttached patch does just that (plus some phpdoc fixes).
Comment #2
fgmOf course, this needs to be reviewed.
Comment #3
amitaibuhi fgm,
Can you explain your use case -- which module is going to use ER's widgets?
Comment #4
fgmHello,
This is for a (yet) unpublished "tree field" widget by DamZ I'm working with.
Comment #5
fgmRerolled agains latest dev version.
Comment #6
fgmOh, and the module is now published: http://drupal.org/project/tree
Comment #7
fgmAdded some typo fixes.
Comment #8
Damien Tournoud CreditAttribution: Damien Tournoud commentedI merged the typo fixes in 7.x-1.x.
Comment #9
Chris Matthews CreditAttribution: Chris Matthews commentedThe 7 year old patch in #7 does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.