From d49c08e2adc162cefddd85e6273ea945232905cd Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 11 May 2023 10:50:11 +0800 Subject: [PATCH] * Use array query instead of switch loop. --- module/project/model.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/module/project/model.php b/module/project/model.php index 067c5df78a..92be888a34 100755 --- a/module/project/model.php +++ b/module/project/model.php @@ -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, ''); } /* 检查对应类型的数据是否已经存在。 */