mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 09:05:01 +00:00
Add missing parameter in creation of new AssignTaskEvent
This commit is contained in:
@@ -536,7 +536,7 @@ final class SingleTaskController extends AbstractController
|
|||||||
|
|
||||||
if (null !== $task->getAssignee()) {
|
if (null !== $task->getAssignee()) {
|
||||||
$this->eventDispatcher->dispatch(
|
$this->eventDispatcher->dispatch(
|
||||||
new AssignTaskEvent($task),
|
new AssignTaskEvent($task, null),
|
||||||
AssignTaskEvent::PERSIST
|
AssignTaskEvent::PERSIST
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,7 @@ class AssignTaskEvent extends Event
|
|||||||
final public const PERSIST = 'chill_task.assign_task';
|
final public const PERSIST = 'chill_task.assign_task';
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly SingleTask $task,
|
private readonly SingleTask $task,
|
||||||
private readonly User $initialAssignee,
|
private readonly ?User $initialAssignee,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public function getTask(): SingleTask
|
public function getTask(): SingleTask
|
||||||
@@ -28,7 +28,7 @@ class AssignTaskEvent extends Event
|
|||||||
return $this->task;
|
return $this->task;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getInitialAssignee(): User
|
public function getInitialAssignee(): ?User
|
||||||
{
|
{
|
||||||
return $this->initialAssignee;
|
return $this->initialAssignee;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user