From f6676cc25a8b288f237587c75b51e1a4ecee3070 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 10 Apr 2024 11:15:37 +0800 Subject: [PATCH] * Code for task #114632, obtain information on the project's charter and roadmap. --- module/project/control.php | 8 ++++++++ module/project/ui/view.html.php | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/module/project/control.php b/module/project/control.php index 5573fb1533..864be44d02 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -585,6 +585,14 @@ class project extends control } } + if($this->config->edition == 'ipd') + { + $charter = $this->loadModel('charter')->getByID($project->charter); + + $this->view->charter = $charter; + $this->view->roadmap = !empty($charter) ? $this->loadModel('roadmap')->getByID($charter->roadmap) : new stdclass(); + } + $this->executeHooks($projectID); list($userPairs, $userList) = $this->projectZen->buildUsers(); diff --git a/module/project/ui/view.html.php b/module/project/ui/view.html.php index 6c10be2b29..884faa1910 100644 --- a/module/project/ui/view.html.php +++ b/module/project/ui/view.html.php @@ -285,7 +285,7 @@ row ) ) ), - div(setClass('flex mt-4'), div(setClass('clip programBox'), $programDom)), + div(setClass('flex mt-4 program'), div(setClass('clip programBox'), $programDom)), div(set::className('detail-content mt-4'), html($project->desc)) ) ), @@ -326,6 +326,7 @@ row ), h::th ( + setClass('th-plan'), span ( setClass('flex'),