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
1 changed files with 6 additions and 6 deletions

View File

@ -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
));
);
}
}
}