I had pretty much everything working with this module (took a while) but then tried to limit my selection using a View. when i create an entity reference display in my view and select that for the field the Add link on the node edit form is no longer there. the search is still there and still works.

also, i now get an error:

Warning: array_keys() expects parameter 1 to be array, null given in references_dialog_entityreference_add_link() (line 250 of /home/admin/public_html/calpoly/sites/all/modules/Fields/references_dialog/references_dialog.dialog_widgets.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

liquidcms’s picture

not sure if this matters; but this is for a user entity reference

leramulina’s picture

Same problem. I just don't get an error message. But cannot create from that field anymore when I set a view mode.

liquidcms’s picture

fyi.. this is with latest -dev; when i go back to 7.x-1.0-alpha4+11-dev (2013-Mar-08) it works fine.

liquidcms’s picture

liquidcms’s picture

ughh.. issue editor under D7 kinda bites the big one... i don't seem to be able to add files with comments.. wtf??

anyway.. as i had typed before but then lost.. ughh!!...

it seems this issue might be by my own hand. i created a couple patches to fix that ref dialog didn't work with adding users. then when i upgraded to latest -dev i forgot to re-apply the patches.. they are posted in #4 above in case anyone has a use for them

SocialNicheGuru’s picture

Status: Active » Needs review

so these are two different patches that need to be applies?

The last submitted patch, 4: user-view-selction-mode.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 4: allow-add-user.patch, failed testing.

Vacilando’s picture

Same problem. The "Create ..." link is there up to the point when I choose filtering by views - then it simply disappears. No error message.
I just work with a simple view of nodes (not users or other entities).

Which of the 2 patches need to be tested?