diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Controller/SearchController.php | 2 | ||||
-rw-r--r-- | app/Helper/ProjectActivityHelper.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/SearchController.php b/app/Controller/SearchController.php index 8557b182..c9213085 100644 --- a/app/Controller/SearchController.php +++ b/app/Controller/SearchController.php @@ -14,7 +14,7 @@ class SearchController extends BaseController { public function index() { - $projects = $this->projectUserRoleModel->getProjectsByUser($this->userSession->getId()); + $projects = $this->projectUserRoleModel->getActiveProjectsByUser($this->userSession->getId()); $search = urldecode($this->request->getStringParam('search')); $nb_tasks = 0; diff --git a/app/Helper/ProjectActivityHelper.php b/app/Helper/ProjectActivityHelper.php index 40f386db..704cd4fe 100644 --- a/app/Helper/ProjectActivityHelper.php +++ b/app/Helper/ProjectActivityHelper.php @@ -26,7 +26,7 @@ class ProjectActivityHelper extends Base */ public function searchEvents($search) { - $projects = $this->projectUserRoleModel->getProjectsByUser($this->userSession->getId()); + $projects = $this->projectUserRoleModel->getActiveProjectsByUser($this->userSession->getId()); $events = array(); if ($search !== '') { |