diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-11-10 14:24:27 -0800 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-11-10 14:24:27 -0800 |
commit | b763966595d6190d310c899ae35712948d62d4c3 (patch) | |
tree | fc1ab1747ba106425dbe214b5dd5ed8ec8aa1983 | |
parent | 38a42716430add3bd4d44ef7244c11018beebc7a (diff) |
Task move events must be executed synchronously
-rw-r--r-- | app/Model/TaskPositionModel.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Model/TaskPositionModel.php b/app/Model/TaskPositionModel.php index 8805d57e..9f7eb983 100644 --- a/app/Model/TaskPositionModel.php +++ b/app/Model/TaskPositionModel.php @@ -243,26 +243,26 @@ class TaskPositionModel extends Base ); if ($task['swimlane_id'] != $new_swimlane_id) { - $this->queueManager->push($this->taskEventJob->withParams( + $this->taskEventJob->execute( $task['id'], array(TaskModel::EVENT_MOVE_SWIMLANE), $changes, $changes - )); + ); } elseif ($task['column_id'] != $new_column_id) { - $this->queueManager->push($this->taskEventJob->withParams( + $this->taskEventJob->execute( $task['id'], array(TaskModel::EVENT_MOVE_COLUMN), $changes, $changes - )); + ); } elseif ($task['position'] != $new_position) { - $this->queueManager->push($this->taskEventJob->withParams( + $this->taskEventJob->execute( $task['id'], array(TaskModel::EVENT_MOVE_POSITION), $changes, $changes - )); + ); } } } |