Skip to content

fix php warning when body field absent, closes #51 - #52

Merged
argiepiano merged 1 commit into
backdrop-contrib:1.x-2.xfrom
jcharaoui:fix-warning-51
Oct 30, 2026
Merged

argiepiano merged 1 commit into
backdrop-contrib:1.x-2.xfrom
jcharaoui:fix-warning-51

Conversation

@jcharaoui

@jcharaoui jcharaoui commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #51

$property['field'] may sometimes be non-empty, (eg. the "body" field of node entities) and at the same time not appear in $field_info_map

instead of relying on the field property, examine $field_info_map directly to check if we can verify the field type

$property['field'] may sometimes be non-empty, (eg. the "body" field of
node entities) and at the same time not appear in $field_info_map

instead of relying on the field property, examine $field_info_map
directly to check if we can verify the field type
@argiepiano
argiepiano merged commit 8a8dd49 into backdrop-contrib:1.x-2.x Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning: Undefined array key "body" in entity_token_token_info_alter() when no content types have a "body" field

2 participants