* [bug#66226] Add the tip for IPD when insert gantt to doc.

This commit is contained in:
xieqiyu
2025-10-20 03:11:28 +00:00
parent 8c495d59cd
commit 66e88b99ed
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ class programplan extends control
{
$this->loadModel('doc');
$projects = $this->loadModel('project')->getPairsByModel(array('ipd', 'waterfall', 'waterfallplus'));
if(empty($projects)) return $this->send(array('result' => 'fail', 'message' => $this->lang->programplan->error->noProject));
if(empty($projects)) return $this->send(array('result' => 'fail', 'message' => $this->config->edition == 'ipd' ? $this->lang->programplan->error->noProject4IPD : $this->lang->programplan->error->noProject));
if(!$projectID) $projectID = key($projects);
$this->view->projects = $projects;