- Issue created by @dieuwe
- @dieuwe opened merge request.
- Status changed to Fixed
about 1 year ago 2:09am 7 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.
The sector workflow code contains a number of checks on the "moderation_state" field from nodes loaded against the current route. It's simply assumed this field exists, but it only does if at least 1 content type is assigned to 1 workflows.
Remove all content types from all workflows and then visit a node. You will get an internal server error.
Improve the checks throughout the sector workflow code with hasField('moderation_state')
before we attempt to access it.
1. Provide patch.
2. Create a follow up task to continue to refactor this? The workflows checks are fairly bloated and could be simplified with better helper class work and could also be generalised more to apply to all types of entities and not just nodes.
None.
None.
None.
Fixed
10.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.