Change configuration file.

This commit is contained in:
zhouxin
2021-12-30 07:16:28 +00:00
parent 344682bf7b
commit e9231b595a
2 changed files with 6 additions and 35 deletions
+4 -3
View File
@@ -2098,10 +2098,11 @@ class projectModel extends model
public function checkCanChangeModel($projectID, $model)
{
$checkList = $this->config->project->checkList->$model;
foreach($checkList as $table)
foreach($checkList as $module)
{
$object = '';
if($table == '') continue;
if($module == '') continue;
$table = constant('TABLE_'. strtoupper($module));;
if($table == TABLE_EXECUTION and $model == 'scrum')
{
$object = $this->fetchByProject($table, $projectID, 'sprint');
@@ -2130,7 +2131,7 @@ class projectModel extends model
*/
public function fetchByProject($table, $projectID, $type = '')
{
$result = $this->dao->select('*')->from($table)
$result = $this->dao->select('id')->from($table)
->where('project')->eq($projectID)
->beginIF(!empty($type))->andWhere('type')->eq($type)->fi()
->fetch();