diff --git a/module/project/control.php b/module/project/control.php index ac679da73a..fe76dbbec2 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -101,8 +101,10 @@ class project extends control /* Set cookie for show all project. */ $_COOKIE['showClosed'] = 1; + $project = $this->project->fetchByID($projectID); + /* Query user's project and program. */ - $projects = $this->project->getListByCurrentUser(); + $projects = $this->project->getListByCurrentUser('*', !$project->isTpl); $involvedProjects = $this->project->getInvolvedListByCurrentUser(); $programs = $this->loadModel('program')->getPairs(true);