From c731f1967b71d6553463be994afd6959d98e8d4d Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 29 Sep 2025 15:56:12 +0200 Subject: [PATCH] Change logic for triggering notification when task is edited and assigned a new user --- src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php b/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php index ac59de62e..37b985755 100644 --- a/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php +++ b/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php @@ -180,7 +180,7 @@ final class SingleTaskController extends AbstractController $em = $this->managerRegistry->getManager(); $em->persist($task); - if (null !== $task->getAssignee()) { + if ($initialAssignee !== $task->getAssignee()) { $this->eventDispatcher->dispatch( new AssignTaskEvent($task, $initialAssignee), AssignTaskEvent::PERSIST