Problem/Motivation
field_display_label_preprocess_field assumes that $entity is not null and fails when calling getFieldDefinition()
Steps to reproduce
Duplicate the People view (/admin/people)
Add a Global->Custom Text field to the view
error is thrown because the custom text aka "nothing" field has no $entity
Proposed resolution
check if $entity is not null and return early
patch attached
| Comment | File | Size | Author |
|---|---|---|---|
| field_display_label-entity-getFieldDefinition-fix.patch | 687 bytes | realgt |
Comments
Comment #3
neslee canil pinto