I added a conditional field to a node edit form with field permissions.
Users that do not have permission to view these fields get this error:

•Notice: Undefined index: field_show_staff in conditional_fields_field_attach_form() (line 172 of C:\inetpub\wwwroot\D7\sites\all\modules\conditional_fields\conditional_fields.module).
•Notice: Undefined index: #type in conditional_fields_field_attach_form() (line 223 of C:\inetpub\wwwroot\D7\sites\all\modules\conditional_fields\conditional_fields.module).

Users that do have permission do not get this error.

Comments

peterpoe’s picture

Status: Active » Fixed

Fixed in dev by adding a better check if fields are in form. Thanks for reporting!

MrPhilbert’s picture

Thank you sir.
I'll try to check it out this weekend.
Speaking of which (if you're in the States), have a great 4th.

Status: Fixed » Closed (fixed)

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