diff options
author | Olivier Maridat <olivier.maridat@trialog.com> | 2015-06-25 10:55:37 +0200 |
---|---|---|
committer | Olivier Maridat <olivier.maridat@trialog.com> | 2015-06-25 10:55:37 +0200 |
commit | c8e1617330e4960010d4101c8e8295b9311e7516 (patch) | |
tree | b0da2f65edca1351768a679fde81b44b7c1098d1 | |
parent | 7a22f4c6d47a3e5d447ebeeef094092a4a4b0ad2 (diff) |
Reorder task links
-rw-r--r-- | app/Model/TaskLink.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/TaskLink.php b/app/Model/TaskLink.php index 251460c9..e079a664 100644 --- a/app/Model/TaskLink.php +++ b/app/Model/TaskLink.php @@ -82,7 +82,7 @@ class TaskLink extends Base ->join(Task::TABLE, 'id', 'opposite_task_id') ->join(Board::TABLE, 'id', 'column_id', Task::TABLE) ->join(User::TABLE, 'id', 'owner_id', Task::TABLE) - ->orderBy(Link::TABLE.'.id ASC, '.Board::TABLE.'.position ASC, '.Task::TABLE.'.is_active DESC, '.Task::TABLE.'.id', Table::SORT_ASC) + ->orderBy(Link::TABLE.'.id ASC, '.Board::TABLE.'.position DESC, '.Task::TABLE.'.is_active DESC, '.Task::TABLE.'.position ASC, '.Task::TABLE.'.id', Table::SORT_ASC) ->findAll(); } |