I realized i posted this to a closed issue so it might not get noticed therefore, i'm posting this as a new issue.. hopefully that is okay. Here's the issue:

Using field permissions module (although i'm sure it would exist with core content permissions as well), i'm not allowing a certain user role to "create or edit" this node reference field therefore they don't see it. It doesn't show the field for the user however because the "show modal editor" box is checked in the field settings (which i want for other roles to use), this error is shown to the user that doesn't have the permission to edit that field when the form is open:
warning: Invalid argument supplied for foreach() in /home/conown/public_html/sites/all/modules/modal_noderef/modal_noderef.module on line 112.

This of course is related to the "show modal editor" link setting. there should be some additional logic I guess in the module to prevent users that don't have the permissions for editing that field to not try to show the link. Sounds like a relatively simple fix however i'm just learning php so can't unfortunately help with a patch. Any ideas or solutions on the php to correct this behavior in the module?
thanks,

Comments

socialnicheguru’s picture

I find this too