Task move events must be executed synchronously

This commit is contained in:
Frederic Guillot
2017-11-10 14:24:27 -08:00
parent 38a4271643
commit b763966595

View File

@@ -243,26 +243,26 @@ class TaskPositionModel extends Base
); );
if ($task['swimlane_id'] != $new_swimlane_id) { if ($task['swimlane_id'] != $new_swimlane_id) {
$this->queueManager->push($this->taskEventJob->withParams( $this->taskEventJob->execute(
$task['id'], $task['id'],
array(TaskModel::EVENT_MOVE_SWIMLANE), array(TaskModel::EVENT_MOVE_SWIMLANE),
$changes, $changes,
$changes $changes
)); );
} elseif ($task['column_id'] != $new_column_id) { } elseif ($task['column_id'] != $new_column_id) {
$this->queueManager->push($this->taskEventJob->withParams( $this->taskEventJob->execute(
$task['id'], $task['id'],
array(TaskModel::EVENT_MOVE_COLUMN), array(TaskModel::EVENT_MOVE_COLUMN),
$changes, $changes,
$changes $changes
)); );
} elseif ($task['position'] != $new_position) { } elseif ($task['position'] != $new_position) {
$this->queueManager->push($this->taskEventJob->withParams( $this->taskEventJob->execute(
$task['id'], $task['id'],
array(TaskModel::EVENT_MOVE_POSITION), array(TaskModel::EVENT_MOVE_POSITION),
$changes, $changes,
$changes $changes
)); );
} }
} }
} }