Append workflow name in twig calls to workflow_metadata

Ensuring that the twig template works if there are more than one workflow available
This commit is contained in:
2024-09-24 14:17:35 +02:00
parent 7b06c80c2a
commit e91fce524e
4 changed files with 8 additions and 11 deletions

View File

@@ -6,7 +6,7 @@
{{ form_errors(transition_form) }}
{% set step = entity_workflow.currentStepChained %}
{% set labels = workflow_metadata(entity_workflow, 'label', step.currentStep) %}
{% set labels = workflow_metadata(entity_workflow, 'label', step.currentStep, entity_workflow.workflowName) %}
{% set label = labels is null ? step.currentStep : labels|localize_translatable_string %}
<div class="card">