- 🇳🇱Netherlands johnv
Above patch #4 is implemented in workflow_access module. But you do not mention that. It must be in the general hook_entity_update.
- Status changed to Fixed
12 months ago 10:25am 1 March 2024 - 🇳🇱Netherlands johnv
Sorry for the mess.
I first wanted to hide it deep in WorkflowManager, but decided not to.diff --git a/workflow.entity.inc b/workflow.entity.inc index f3ea4f3..c97d4dc 100644 --- a/workflow.entity.inc +++ b/workflow.entity.inc @@ -69,6 +69,14 @@ function workflow_entity_insert(EntityInterface $entity) { */ function workflow_entity_update(EntityInterface $entity) { _workflow_execute_transitions($entity); + + // Invalidate cache tags for entity so that local tasks rebuild, + // when Workflow is a BaseField. + $field_names = workflow_get_workflow_field_names($entity); + if ($field_names) { + $entity->getCacheTagsToInvalidate(); + } + }
Automatically closed - issue fixed for 2 weeks with no activity.