* [bug] remove proejct release config.

This commit is contained in:
sunguangming
2024-09-11 10:10:33 +08:00
committed by 王怡栋
parent 7af92e5ac8
commit 31b09f4eb7
2 changed files with 16 additions and 13 deletions
+7 -3
View File
@@ -447,9 +447,6 @@ class datatableModel extends model
*/
public function appendWorkflowFields(string $module, string $method, array $fieldList): array
{
$flow = $this->loadModel('workflow')->getByModule($module);
if(empty($flow)) return $fieldList;
if(in_array($module, array('epic', 'story', 'requirement')))
{
$module = 'product';
@@ -473,6 +470,13 @@ class datatableModel extends model
{
$method = 'browse'; // 执行用例列表加载testcase-browse的layout配置。
}
elseif($module == 'projectrelease')
{
$module = 'release'; // 项目发布加载release-browse的layout配置。
}
$flow = $this->loadModel('workflow')->getByModule($module);
if(empty($flow)) return $fieldList;
$fields = $this->loadModel('workflowaction')->getFields($module, $method);
if($flow->buildin == 1)