* [task#143871,done,2h] Set gantt block when create document by template.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user