* [task#143871,done,2h] Set gantt block when create document by template.

This commit is contained in:
daitingting
2025-05-28 09:13:26 +00:00
parent 7e96b73ba9
commit 3d07125426
6 changed files with 31 additions and 16 deletions
+1
View File
@@ -65,6 +65,7 @@ class programplan extends control
$projects = $this->loadModel('project')->getPairsByModel(array('ipd', 'waterfall', 'waterfallplus'));
if(empty($projects)) return $this->send(array('result' => 'fail', 'message' => $this->lang->doc->tips->noProject));
if(!$projectID) $projectID = key($projects);
$this->view->projects = $projects;
}