mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Feature: [workflow] do not subscribe user on notification for each step
automatically
This commit is contained in:
parent
fc607d6a0e
commit
999e9e8553
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user