Restrict search to active projects

This commit is contained in:
Frederic Guillot
2016-10-09 20:53:14 -04:00
parent 9eefe6a358
commit 9302ff82f3
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class SearchController extends BaseController
{ {
public function index() public function index()
{ {
$projects = $this->projectUserRoleModel->getProjectsByUser($this->userSession->getId()); $projects = $this->projectUserRoleModel->getActiveProjectsByUser($this->userSession->getId());
$search = urldecode($this->request->getStringParam('search')); $search = urldecode($this->request->getStringParam('search'));
$nb_tasks = 0; $nb_tasks = 0;

View File

@@ -26,7 +26,7 @@ class ProjectActivityHelper extends Base
*/ */
public function searchEvents($search) public function searchEvents($search)
{ {
$projects = $this->projectUserRoleModel->getProjectsByUser($this->userSession->getId()); $projects = $this->projectUserRoleModel->getActiveProjectsByUser($this->userSession->getId());
$events = array(); $events = array();
if ($search !== '') { if ($search !== '') {