mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 10:29:42 +00:00
Change logic for triggering notification when task is edited and assigned a new user
This commit is contained in:
@@ -180,7 +180,7 @@ final class SingleTaskController extends AbstractController
|
|||||||
$em = $this->managerRegistry->getManager();
|
$em = $this->managerRegistry->getManager();
|
||||||
$em->persist($task);
|
$em->persist($task);
|
||||||
|
|
||||||
if (null !== $task->getAssignee()) {
|
if ($initialAssignee !== $task->getAssignee()) {
|
||||||
$this->eventDispatcher->dispatch(
|
$this->eventDispatcher->dispatch(
|
||||||
new AssignTaskEvent($task, $initialAssignee),
|
new AssignTaskEvent($task, $initialAssignee),
|
||||||
AssignTaskEvent::PERSIST
|
AssignTaskEvent::PERSIST
|
||||||
|
Reference in New Issue
Block a user