Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
peterpoe CreditAttribution: peterpoe commentedFixed in dev by adding a better check if fields are in form. Thanks for reporting!
Comment #2
MrPhilbert CreditAttribution: MrPhilbert commentedThank you sir.
I'll try to check it out this weekend.
Speaking of which (if you're in the States), have a great 4th.