diff --git a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php index 4ba8f9803..d5a51af16 100644 --- a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php +++ b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php @@ -434,6 +434,7 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface $previousStep = $this->getCurrentStep(); $previousStep + ->setComment($transitionContextDTO->comment) ->setTransitionAfter($transition) ->setTransitionAt($transitionAt) ->setTransitionBy($byUser); @@ -441,8 +442,6 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface $newStep = new EntityWorkflowStep(); $newStep->setCurrentStep($step); - $newStep->setComment($transitionContextDTO->comment); - foreach ($transitionContextDTO->futureCcUsers as $user) { $newStep->addCcUser($user); }