* Adjust check project type.

This commit is contained in:
holan20180123
2020-09-08 13:26:54 +08:00
parent 92e82e95fb
commit bc92db2f3f
+7 -9
View File
@@ -150,15 +150,7 @@ class router extends baseRouter
$productIndex = $storyIndex = $hourIndex = $planIndex = $URAndSR = 0;
$projectIndex = empty($this->config->isINT) ? 0 : 1;
if($this->session->program)
{
$template = $this->dbh->query('SELECT template FROM' . TABLE_PROJECT . "WHERE id = {$this->session->program}")->fetch();
if($template->template == 'waterfall')
{
$projectIndex = 2;
$planIndex = 1;
}
}
if($this->session->program) $template = $this->dbh->query('SELECT template FROM' . TABLE_PROJECT . "WHERE id = {$this->session->program}")->fetch();
foreach($commonSettings as $setting)
{
@@ -178,6 +170,12 @@ class router extends baseRouter
}
}
if(isset($template->template) && $template->template == 'waterfall')
{
$projectIndex = 2;
$planIndex = 1;
}
$config->storyCommon = $storyIndex;
$config->URAndSR = $URAndSR;