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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fgm’s picture

Attached patch does just that (plus some phpdoc fixes).

fgm’s picture

Status: Active » Needs review

Of course, this needs to be reviewed.

amitaibu’s picture

hi fgm,
Can you explain your use case -- which module is going to use ER's widgets?

fgm’s picture

Hello,

This is for a (yet) unpublished "tree field" widget by DamZ I'm working with.

fgm’s picture

Rerolled agains latest dev version.

fgm’s picture

Oh, and the module is now published: http://drupal.org/project/tree

fgm’s picture

Added some typo fixes.

Damien Tournoud’s picture

I merged the typo fixes in 7.x-1.x.

Chris Matthews’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll

The 7 year old patch in #7 does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.