* Fix block details.

This commit is contained in:
Yagami
2020-08-25 14:59:24 +08:00
parent 78c467722a
commit 4e0a3d0da5
5 changed files with 21 additions and 8 deletions
+6
View File
@@ -53,6 +53,9 @@ class task extends control
die(js::locate($this->createLink('project', 'task', "projectID=$projectID")));
}
$program = $this->loadModel('project')->getByID($this->session->program);
if($program->template == 'cmmi') $this->config->task->create->requiredFields .= ',estStarted,deadline';
$task = new stdClass();
$task->module = $moduleID;
$task->assignedTo = '';
@@ -236,6 +239,9 @@ class task extends control
die(js::locate($this->createLink('project', 'task', "projectID=$projectID")));
}
$program = $this->loadModel('project')->getByID($this->session->program);
if($program->template == 'cmmi') $this->config->task->create->requiredFields .= ',estStarted,deadline';
$project = $this->project->getById($projectID);
$taskLink = $this->createLink('project', 'browse', "projectID=$projectID&tab=task");
$storyLink = $this->session->storyList ? $this->session->storyList : $this->createLink('project', 'story', "projectID=$projectID");