From e506648cbcda0b6021cf0a3b5e2f6381d8f1d0ea Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 25 Jan 2015 11:55:12 -0500 Subject: Do not show inactive projects info on the dashboard and update picodb (merge #546) --- app/Controller/App.php | 2 +- app/Controller/Task.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controller') diff --git a/app/Controller/App.php b/app/Controller/App.php index cf8d606f..6eab2bcd 100644 --- a/app/Controller/App.php +++ b/app/Controller/App.php @@ -31,7 +31,7 @@ class App extends Base { $status = array(SubTaskModel::STATUS_TODO, SubTaskModel::STATUS_INPROGRESS); $user_id = $this->userSession->getId(); - $projects = $this->projectPermission->getMemberProjects($user_id); + $projects = $this->projectPermission->getActiveMemberProjects($user_id); $project_ids = array_keys($projects); $task_paginator = $this->paginator diff --git a/app/Controller/Task.php b/app/Controller/Task.php index 7f85f36c..c25a4b9d 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -418,7 +418,7 @@ class Task extends Base $task = $this->getTask(); $values = $task; $errors = array(); - $projects_list = $this->projectPermission->getMemberProjects($this->userSession->getId()); + $projects_list = $this->projectPermission->getActiveMemberProjects($this->userSession->getId()); unset($projects_list[$task['project_id']]); @@ -457,7 +457,7 @@ class Task extends Base $task = $this->getTask(); $values = $task; $errors = array(); - $projects_list = $this->projectPermission->getMemberProjects($this->userSession->getId()); + $projects_list = $this->projectPermission->getActiveMemberProjects($this->userSession->getId()); unset($projects_list[$task['project_id']]); -- cgit v1.2.3