* [bug#65018,done,0.5h] change tips when the project data is empty.
This commit is contained in:
@@ -63,7 +63,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->doc->tips->noProject));
|
||||
if(empty($projects)) return $this->send(array('result' => 'fail', 'message' => $this->lang->programplan->error->noProject));
|
||||
|
||||
if(!$projectID) $projectID = key($projects);
|
||||
$this->view->projects = $projects;
|
||||
|
||||
@@ -148,6 +148,7 @@ $lang->programplan->error->planDrag = 'The %s stage cannot be dragged';
|
||||
$lang->programplan->error->notStage = $lang->executionCommon . '/Kanban cannot create a sub stage.';
|
||||
$lang->programplan->error->sameType = 'Type of the stage must be as same as parent: "%s"';
|
||||
$lang->programplan->error->emptyParentName = "Contains sub stages, stage names cannot be empty.";
|
||||
$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added.";
|
||||
|
||||
$lang->programplan->ganttBrowseType['gantt'] = 'Group by Stage';
|
||||
$lang->programplan->ganttBrowseType['assignedTo'] = 'Group by AssignedTo';
|
||||
|
||||
@@ -148,6 +148,7 @@ $lang->programplan->error->planDrag = 'The %s stage cannot be dragged';
|
||||
$lang->programplan->error->notStage = $lang->executionCommon . '/Kanban cannot create a sub stage.';
|
||||
$lang->programplan->error->sameType = 'Type of the stage must be as same as parent: "%s"';
|
||||
$lang->programplan->error->emptyParentName = "Contains sub stages, stage names cannot be empty.";
|
||||
$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added.";
|
||||
|
||||
$lang->programplan->ganttBrowseType['gantt'] = 'Group by Stage';
|
||||
$lang->programplan->ganttBrowseType['assignedTo'] = 'Group by AssignedTo';
|
||||
|
||||
@@ -148,6 +148,7 @@ $lang->programplan->error->planDrag = 'The %s stage cannot be dragged';
|
||||
$lang->programplan->error->notStage = $lang->executionCommon . '/Kanban cannot create a sub stage.';
|
||||
$lang->programplan->error->sameType = 'Type of the stage must be as same as parent: "%s"';
|
||||
$lang->programplan->error->emptyParentName = "Contains sub stages, stage names cannot be empty.";
|
||||
$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added.";
|
||||
|
||||
$lang->programplan->ganttBrowseType['gantt'] = 'Group by Stage';
|
||||
$lang->programplan->ganttBrowseType['assignedTo'] = 'Group by AssignedTo';
|
||||
|
||||
@@ -148,6 +148,7 @@ $lang->programplan->error->planDrag = '%s的阶段不可以拖动';
|
||||
$lang->programplan->error->notStage = $lang->executionCommon . '/看板不支持创建子阶段';
|
||||
$lang->programplan->error->sameType = '父阶段类型为"%s",阶段类型需与父阶段一致';
|
||||
$lang->programplan->error->emptyParentName = "包含子阶段,阶段名称不能为空。";
|
||||
$lang->programplan->error->noProject = "系统中没有瀑布、融合瀑布、ipd{$lang->projectCommon}时,无法添加甘特图。";
|
||||
|
||||
$lang->programplan->ganttBrowseType['gantt'] = '按阶段分组';
|
||||
$lang->programplan->ganttBrowseType['assignedTo'] = '按指派给分组';
|
||||
|
||||
Reference in New Issue
Block a user