* Finish task #72674.

This commit is contained in:
Yagami
2022-10-19 15:36:15 +08:00
parent c330b6bc06
commit 187d3b8ca4
11 changed files with 60 additions and 32 deletions
+7 -4
View File
@@ -113,10 +113,13 @@ class datatable extends control
{
$execution = $this->loadModel('execution')->getByID($this->session->execution);
$project = $this->loadModel('project')->getByID($execution->project);
if(!$project->hasProduct and $project->model != 'scrum')
{
unset($cols['plan']);
}
if(!$project->hasProduct and $project->model != 'scrum') unset($cols['plan']);
}
if($moduleName == 'execution' and $method == 'story')
{
$execution = $this->loadModel('execution')->getByID($this->session->execution);
if(!$execution->hasProduct and !$execution->multiple) unset($cols['plan']);
}
$this->view->cols = $cols;