Trigger EVENT_MOVE_COLUMN event when moving task to another swimlane

Fixes #4581
This commit is contained in:
Frédéric Guillot
2023-04-07 16:01:28 -07:00
committed by Frédéric Guillot
parent 77a32cb1b5
commit d3948e89a9
2 changed files with 12 additions and 3 deletions

View File

@@ -287,6 +287,15 @@ class TaskPositionModel extends Base
$changes,
$changes
);
if ($task['column_id'] != $new_column_id) {
$this->taskEventJob->execute(
$task['id'],
array(TaskModel::EVENT_MOVE_COLUMN),
$changes,
$changes
);
}
} elseif ($task['column_id'] != $new_column_id) {
$this->taskEventJob->execute(
$task['id'],