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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entityreference_view_widget-2719145-include_ctools_resources_in_ajax_callback-1.patch | 995 bytes | kengilb |
Comments
Comment #2
kengilb commentedComment #3
kengilb commentedComment #5
jsacksick commentedCommitted, thanks. I haven't reproduced the bug, however this one line fix shouldn't break anything.