Add dropdown menu on the board to reorder tasks by ID

This commit is contained in:
Tomas Dittmann
2023-02-27 01:13:56 +01:00
committed by GitHub
parent 87e9a770c8
commit f945e45ad4
3 changed files with 25 additions and 1 deletions

View File

@@ -20,6 +20,9 @@ class TaskReorderController extends BaseController
$sort = $this->request->getStringParam('sort');
switch ($sort) {
case 'id':
$this->taskReorderModel->reorderByTaskId($project['id'], $swimlaneID, $columnID, $direction);
break;
case 'priority':
$this->taskReorderModel->reorderByPriority($project['id'], $swimlaneID, $columnID, $direction);
break;