Task move events must be executed synchronously
This commit is contained in:
@@ -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
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user