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