Closed (fixed)
Project:
Nodeaccess
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2009 at 20:59 UTC
Updated:
12 Mar 2014 at 16:50 UTC
Jump to comment: Most recent
Hi, I have a node with a user field (userreference) for adding additonal edit access for node maintainers. Under some circumstances I get the the following error:
warning: Invalid argument supplied for foreach() in E:\esg\sites\all\modules\nodeaccess\nodeaccess.module on line 849.
it is the inner foreach loop of function nodeaccess_delete_userreference($node) .
In one example $fields gets initialized as
Array
(
[field_ansprechpartner] => Array
(
[gid] => nodeaccess_uid
[enabled] => 1
[grant_view] => 1
[grant_update] => 1
[grant_delete] => 1
)
)
but the field field_ansprechpartner is not availlable in $node (as well as several other fields which can be seen from a computed field).
The error occurs for example if I convert a story or page to a content type which has the field ansprechpartner.
Comments
Comment #1
vlad.pavlovic commentedFixed, I will push to dev version later today. Thank you.