diff --git a/module/project/control.php b/module/project/control.php index 14c5eefc53..d1d6010fc9 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -198,9 +198,9 @@ class project extends control $taskQuery = $this->search->replaceDynamic($taskQuery); $this->session->set('taskQueryCondition', $taskQuery); $this->session->set('taskOnlyCondition', true); - $this->session->set('taskOrderBy', $allProject); + $this->session->set('taskOrderBy', $sort); - $tasks = $this->project->getSearchTasks($taskQuery, $pager, $allProject); + $tasks = $this->project->getSearchTasks($taskQuery, $pager, $sort); } /* Build the search form. */