Retrieving an entity form programatically that contain fields using the entityreference view widget can pose some problems.

Notably, the resources for ctools sometimes aren't included in the ajax callback. Including the necessary resources directly in the callback ala _entityreference_view_widget_add_resources($form); appears to do the trick at no harm to the form.

Patch to follow.

Comments

kengilb created an issue. See original summary.

kengilb’s picture

Status: Active » Needs review
StatusFileSize
new995 bytes
kengilb’s picture

Assigned: kengilb » Unassigned

  • jsacksick committed 1d0f668 on 7.x-2.x authored by kengilb
    Issue #2719145 by kengilb: Ctools resources not included in the ajax...
jsacksick’s picture

Status: Needs review » Fixed

Committed, thanks. I haven't reproduced the bug, however this one line fix shouldn't break anything.

Status: Fixed » Closed (fixed)

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