add accessKey to entity workflow step

This commit is contained in:
2022-02-23 18:33:29 +01:00
parent b56d8c2956
commit 08f9819453
3 changed files with 54 additions and 2 deletions

View File

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