mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 20:39:40 +00:00
Feature: [workflow] do not subscribe user on notification for each step
automatically
This commit is contained in:
@@ -133,8 +133,7 @@ class EntityWorkflowStep
|
|||||||
if (!$this->destUser->contains($user)) {
|
if (!$this->destUser->contains($user)) {
|
||||||
$this->destUser[] = $user;
|
$this->destUser[] = $user;
|
||||||
$this->getEntityWorkflow()
|
$this->getEntityWorkflow()
|
||||||
->addSubscriberToFinal($user)
|
->addSubscriberToFinal($user);
|
||||||
->addSubscriberToStep($user);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@@ -145,8 +144,7 @@ class EntityWorkflowStep
|
|||||||
if (!$this->destUserByAccessKey->contains($user) && !$this->destUser->contains($user)) {
|
if (!$this->destUserByAccessKey->contains($user) && !$this->destUser->contains($user)) {
|
||||||
$this->destUserByAccessKey[] = $user;
|
$this->destUserByAccessKey[] = $user;
|
||||||
$this->getEntityWorkflow()
|
$this->getEntityWorkflow()
|
||||||
->addSubscriberToFinal($user)
|
->addSubscriberToFinal($user);
|
||||||
->addSubscriberToStep($user);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Reference in New Issue
Block a user