diff --git a/module/execution/model.php b/module/execution/model.php index 2f85d60aa3..ca4c463b72 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -149,6 +149,7 @@ class executionModel extends model { dao::$filterTpl = 'never'; $this->lang->execution->common = $this->lang->execution->toTemplate; + if(empty($execution->multiple)) $this->lang->project->common = $this->lang->project->template; unset($this->lang->execution->menu->burn); unset($this->lang->execution->menu->kanban); diff --git a/module/project/control.php b/module/project/control.php index 0ca0b55d1f..a09b878565 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -147,8 +147,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('*', !empty($project->isTpl) ? 'onlyTpl' : ''); $involvedProjects = $this->project->getInvolvedListByCurrentUser(); $programs = $this->loadModel('program')->getPairs(true);