diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-17 14:56:31 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-17 14:56:31 -0500 |
commit | e94c4cab7f79657f8b514b4af6c4e459e9b42961 (patch) | |
tree | 4986bdff7f1b1b401ff819642a1bab8d1d1c9a39 /app/Model/TaskStatus.php | |
parent | 1259e911e4316f9f1ae401f4f293da69d9ba9e78 (diff) |
Avoid automatic actions that change the color to fire subsequent events
Diffstat (limited to 'app/Model/TaskStatus.php')
-rw-r--r-- | app/Model/TaskStatus.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Model/TaskStatus.php b/app/Model/TaskStatus.php index afb5ffb5..2b902815 100644 --- a/app/Model/TaskStatus.php +++ b/app/Model/TaskStatus.php @@ -113,10 +113,8 @@ class TaskStatus extends Base )); if ($result) { - $this->container['dispatcher']->dispatch( - $event, - new TaskEvent(array('task_id' => $task_id) + $this->taskFinder->getById($task_id)) - ); + $this->logger->debug('Event fired: '.$event); + $this->dispatcher->dispatch($event, new TaskEvent(array('task_id' => $task_id) + $this->taskFinder->getById($task_id))); } return $result; |