* Adjust type and endList of sprint.

This commit is contained in:
guanxiying
2019-11-22 14:45:33 +08:00
parent 678487a9da
commit 0665deed72
3 changed files with 30 additions and 0 deletions
+25
View File
@@ -1117,6 +1117,18 @@ class project extends control
}
}
if(strpos($this->config->custom->productProject, '_2'))
{
$this->view->isSprint = true;
unset($this->lang->project->typeList['waterfall']);
unset($this->lang->project->typeList['ops']);
unset($this->lang->project->endList[62]);
unset($this->lang->project->endList[93]);
unset($this->lang->project->endList[186]);
unset($this->lang->project->endList[365]);
}
$projectID = key($this->projects);
if($this->session->project) $projectID = $this->session->project;
$this->project->setMenu($this->projects, $projectID);
@@ -1206,6 +1218,19 @@ class project extends control
$productPlans[$product->id] = $this->productplan->getPairs($product->id);
}
if(strpos($this->config->custom->productProject, '_2'))
{
$this->view->isSprint = true;
unset($this->lang->project->typeList['waterfall']);
unset($this->lang->project->typeList['ops']);
unset($this->lang->project->endList[62]);
unset($this->lang->project->endList[93]);
unset($this->lang->project->endList[186]);
unset($this->lang->project->endList[365]);
}
$this->view->title = $title;
$this->view->position = $position;
$this->view->projects = $projects;