bug: refactor autoLoad setting.

This commit is contained in:
sunhao
2024-01-16 13:48:17 +08:00
parent d93164273a
commit 3445fe7f15
+7 -8
View File
@@ -15,6 +15,13 @@ $fields = useFields('bug.create');
if(!empty($executionType) && $executionType == 'kanban') $fields->merge('bug.kanban');
$fields->autoLoad('product', 'product,module,openedBuild,execution,project,story,task,assignedTo')
->autoLoad('branch', 'module,openedBuild,execution,project,story,task,assignedTo')
->autoLoad('module', 'assignedTo,story')
->autoLoad('project', 'openedBuild,execution,story,task,assignedTo')
->autoLoad('execution', 'openedBuild,story,task,assignedTo')
->autoLoad('region', 'lane');
jsVar('bug', $bug);
jsVar('moduleID', $bug->moduleID);
jsVar('tab', $this->app->tab);
@@ -22,14 +29,6 @@ jsVar('createRelease', $lang->release->create);
jsVar('refresh', $lang->refreshIcon);
jsVar('projectExecutionPairs', $projectExecutionPairs);
$autoLoad = array();
$autoLoad['product'] = 'product,module,openedBuild,execution,project,story,task,assignedTo';
$autoLoad['branch'] = 'module,openedBuild,execution,project,story,task,assignedTo';
$autoLoad['module'] = 'assignedTo,story';
$autoLoad['project'] = 'openedBuild,execution,story,task,assignedTo';
$autoLoad['execution'] = 'openedBuild,story,task,assignedTo';
$autoLoad['region'] = 'lane';
formGridPanel
(
set::title($lang->bug->create),