Restrict search to active projects
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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 !== '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user