* Code for task #114632, obtain information on the project's charter and roadmap.

This commit is contained in:
hufangzhou
2024-04-10 11:15:40 +08:00
parent 4cd3c49ea1
commit f6676cc25a
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -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();
+2 -1
View File
@@ -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'),