* Use array query instead of switch loop.

This commit is contained in:
caoyanyi
2023-05-11 10:52:09 +08:00
parent 8e82c8a98b
commit d49c08e2ad
+2 -15
View File
@@ -2796,21 +2796,8 @@ class projectModel extends model
$table = constant('TABLE_'. strtoupper($module));
if($module == 'execution')
{
switch($model)
{
case 'waterfall':
$type = 'stage';
break;
case 'waterfallplus':
$type = 'stage';
break;
case 'kanban':
$type = 'kanban';
break;
default:
$type = 'sprint';
break;
}
$this->app->loadConfig('execution');
$type = zget($this->config->execution->modelList, $model, '');
}
/* 检查对应类型的数据是否已经存在。 */