diff --git a/src/Bundle/ChillMainBundle/Form/WorkflowStepType.php b/src/Bundle/ChillMainBundle/Form/WorkflowStepType.php index 7f423b4a1..ba943ddd3 100644 --- a/src/Bundle/ChillMainBundle/Form/WorkflowStepType.php +++ b/src/Bundle/ChillMainBundle/Form/WorkflowStepType.php @@ -96,8 +96,8 @@ class WorkflowStepType extends AbstractType 'choice_label' => function (Transition $transition) use ($workflow) { $meta = $workflow->getMetadataStore()->getTransitionMetadata($transition); - if (\array_key_exists('label', $meta)) { - return $this->translatableStringHelper->localize($meta['label']); + if (\array_key_exists('translated_labels', $meta)) { + return $this->translatableStringHelper->localize($meta['translated_labels']); } return $transition->getName(); diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/_decision.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/_decision.html.twig index aedee6587..c0ba56fbc 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/_decision.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/_decision.html.twig @@ -6,7 +6,7 @@ {{ form_errors(transition_form) }} {% set step = entity_workflow.currentStepChained %} - {% set labels = workflow_metadata(entity_workflow, 'label', step.currentStep, entity_workflow.workflowName) %} + {% set labels = workflow_metadata(entity_workflow, 'translated_labels', step.currentStep, entity_workflow.workflowName) %} {% set label = labels is null ? step.currentStep : labels|localize_translatable_string %}