Feature: [workflow] do not send a notification for each step to creator's workflow

Now, by default:

- the creator will receive a notification for the last step only;
- the participant / assignee for each step won't receive a notification (unless they explicitly choose to receive one)
This commit is contained in:
2023-01-19 13:27:08 +01:00
parent 4fec18f3aa
commit 7915aae86f
2 changed files with 0 additions and 5 deletions

View File

@@ -85,7 +85,6 @@ class WorkflowController extends AbstractController
->setRelatedEntityClass($request->query->get('entityClass'))
->setRelatedEntityId($request->query->getInt('entityId'))
->setWorkflowName($request->query->get('workflow'))
->addSubscriberToStep($this->getUser())
->addSubscriberToFinal($this->getUser());
$errors = $this->validator->validate($entityWorkflow, null, ['creation']);