This commit is contained in:
liuruogu
2022-08-10 06:01:37 +00:00
parent e05e56ee70
commit 64a77e3075
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -423,5 +423,3 @@ $config->upgrade->recoveryActions->testcase->review['name'] = $lang->upgrade
$config->upgrade->recoveryActions->testcase->review['method'] = 'operate';
$config->upgrade->recoveryActions->testcase->review['open'] = 'normal';
$config->upgrade->recoveryActions->testcase->review['position'] = 'browseandview';
$config->upgrade->workflowRequiredField = array('product', 'execution', 'program', 'project', 'release', 'story', 'bug', 'task', 'testcase', 'testtask', 'feedback');
+2 -2
View File
@@ -6882,7 +6882,7 @@ class upgradeModel extends model
}
/**
* Add requred rule to the built-in workflow status field.
* Add required rule to the built-in workflow status field.
*
* @access public
* @return void
@@ -6892,7 +6892,7 @@ class upgradeModel extends model
$notemptyRule = $this->dao->select('id')->from(TABLE_WORKFLOWRULE)->where('rule')->eq('notempty')->fetch();
if(empty($notemptyRule)) return false;
$fields = $this->dao->select('*')->from(TABLE_WORKFLOWFIELD)->where('field')->eq('status')->andWhere('module')->in($this->config->upgrade->workflowRequiredField)->fetchAll();
$fields = $this->dao->select('*')->from(TABLE_WORKFLOWFIELD)->where('field')->eq('status')->andWhere('buildin')->eq(1)->fetchAll();
foreach($fields as $field)
{