diff --git a/src/Bundle/ChillMainBundle/Workflow/EventSubscriber/EntityWorkflowTransitionEventSubscriber.php b/src/Bundle/ChillMainBundle/Workflow/EventSubscriber/EntityWorkflowTransitionEventSubscriber.php index 1729d0daa..192ca0712 100644 --- a/src/Bundle/ChillMainBundle/Workflow/EventSubscriber/EntityWorkflowTransitionEventSubscriber.php +++ b/src/Bundle/ChillMainBundle/Workflow/EventSubscriber/EntityWorkflowTransitionEventSubscriber.php @@ -50,6 +50,10 @@ class EntityWorkflowTransitionEventSubscriber implements EventSubscriberInterfac /** @var EntityWorkflow $entityWorkflow */ $entityWorkflow = $event->getSubject(); + foreach ($entityWorkflow->futureCcUsers as $user) { + $entityWorkflow->getCurrentStep()->addCcUser($user); + } + foreach ($entityWorkflow->futureDestUsers as $user) { $entityWorkflow->getCurrentStep()->addDestUser($user); } diff --git a/src/Bundle/ChillMainBundle/Workflow/EventSubscriber/NotificationOnTransition.php b/src/Bundle/ChillMainBundle/Workflow/EventSubscriber/NotificationOnTransition.php index 7d2cadc37..f02341ff7 100644 --- a/src/Bundle/ChillMainBundle/Workflow/EventSubscriber/NotificationOnTransition.php +++ b/src/Bundle/ChillMainBundle/Workflow/EventSubscriber/NotificationOnTransition.php @@ -85,7 +85,9 @@ class NotificationOnTransition implements EventSubscriberInterface // the subscriber to final, only if final $entityWorkflow->isFinal() ? $entityWorkflow->getSubscriberToFinal()->toArray() : [], // the dests for the current step - $entityWorkflow->getCurrentStep()->getDestUser()->toArray() + $entityWorkflow->getCurrentStep()->getDestUser()->toArray(), + // the cc users for the current step + $entityWorkflow->getCurrentStep()->getCcUser()->toArray() ) as $dest) { $dests[spl_object_hash($dest)] = $dest; }