- Issue created by @joe.P
- @joep opened merge request.
- Status changed to Needs review
over 1 year ago 4:57pm 24 July 2023
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.
Needs review
2.6
Code