Skip to content
Snippets Groups Projects
Commit 487825a6 authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

Ensure that the bundle info cache is rebuilt when adding a new workflow.

parent 190e58ec
No related branches found
No related tags found
No related merge requests found
......@@ -124,6 +124,10 @@ function entity_workflow_workflow_insert(WorkflowInterface $workflow) {
// When a workflow is added, the router needs to be rebuilt to add the
// corresponding tabs and local actions.
\Drupal::service('router.builder')->setRebuildNeeded();
// The bundle info cache also needs to be cleared in order to take the new
// workflow into account when field definitions are rebuilt.
\Drupal::service('entity_type.bundle.info')->clearCachedBundles();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment