* [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
+9 -10
View File
@@ -1,14 +1,13 @@
<?php
$config->datatable->moduleAlias['product-browse'] = 'story';
$config->datatable->moduleAlias['execution-story'] = 'story';
$config->datatable->moduleAlias['execution-task'] = 'task';
$config->datatable->moduleAlias['program-project'] = 'project';
$config->datatable->moduleAlias['project-bug'] = 'bug';
$config->datatable->moduleAlias['execution-bug'] = 'bug';
$config->datatable->moduleAlias['execution-build'] = 'build';
$config->datatable->moduleAlias['project-build'] = 'build';
$config->datatable->moduleAlias['execution-testcase'] = 'testcase';
$config->datatable->moduleAlias['projectrelease-browse'] = 'release';
$config->datatable->moduleAlias['product-browse'] = 'story';
$config->datatable->moduleAlias['execution-story'] = 'story';
$config->datatable->moduleAlias['execution-task'] = 'task';
$config->datatable->moduleAlias['program-project'] = 'project';
$config->datatable->moduleAlias['project-bug'] = 'bug';
$config->datatable->moduleAlias['execution-bug'] = 'bug';
$config->datatable->moduleAlias['execution-build'] = 'build';
$config->datatable->moduleAlias['project-build'] = 'build';
$config->datatable->moduleAlias['execution-testcase'] = 'testcase';
$config->datatable->noProductModule = ',review,';
+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)