Hi I have this notice in config page "../admin/structure/types/manage/article/fields/field_text field" that field have field_permissions restriction "Edit own field_text on content created by the user".
Notice: Trying to get property of non-object in _field_permissions_field_edit_access() (line 76 of \sites\all\modules\field_permissions\includes\field_access.inc).
Thanks

CommentFileSizeAuthor
#3 field_permissions_line_76-1186844-3.patch739 bytes13rac1

Comments

arla’s picture

I got this too. In my case it's $object that is null. I'm guessing that $object should be checked somewhere in the flow. But I can't figure out where, or what should happen when it's null.

kukle’s picture

install the dev version

13rac1’s picture

Status: Active » Needs review
StatusFileSize
new739 bytes

Patch for this notice is attached.

robloach’s picture

Status: Needs review » Fixed

Yay!

Status: Fixed » Closed (fixed)

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