From 04b2def8a5a628b38415b0948d57eaf7628fe26a Mon Sep 17 00:00:00 2001 From: LenaertsJ Date: Tue, 19 Nov 2024 10:15:15 +0000 Subject: [PATCH] Save the comments on a workflow step --- src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php index 99d5cdb7d..4ba8f9803 100644 --- a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php +++ b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php @@ -441,6 +441,8 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface $newStep = new EntityWorkflowStep(); $newStep->setCurrentStep($step); + $newStep->setComment($transitionContextDTO->comment); + foreach ($transitionContextDTO->futureCcUsers as $user) { $newStep->addCcUser($user); }