TypeError: "in_array(): Argument #2 ($haystack) must be of type array for workflows which do not apply to nodes

Created on 24 July 2023, over 1 year ago

When having a workflow which does not apply to a node type the module throws a PHP Exception:

TypeError: "in_array(): Argument #2 ($haystack) must be of type array, null given" at content_notification/src/ContentNotificationService.php line 159

This is because $settings['entity_types']['node'] is not set in this case.

To reproduce add a new workflow which does not apply to any node type and open an existing content-notification configuration or create a new one and check the ajax requests when changing the content type.

🐛 Bug report
Status

Needs review

Version

2.6

Component

Code

Created by

🇩🇪Germany joe.P

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024