From 5b09826a69c3d9fd620e00a00d106add106821d8 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Thu, 12 Jun 2025 16:48:06 +0800 Subject: [PATCH] * [bug#63322,done,0.1h,0h] Fix project template app name error. --- module/execution/model.php | 1 + module/project/control.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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);