* [perf story #37015] Adjust for export bug.

This commit is contained in:
wangyidong
2025-08-27 13:14:35 +08:00
parent 50b998e667
commit 44fa468bea
+2 -3
View File
@@ -664,9 +664,7 @@ class bug extends control
{
/* 设置模块数据源。 */
/* Set module data source. */
$this->config->bug->dtable->fieldList['module']['dataSource']['module'] = 'tree';
$this->config->bug->dtable->fieldList['module']['dataSource']['method'] = 'getAllModulePairs';
$this->config->bug->dtable->fieldList['module']['dataSource']['params'] = 'bug';
$this->config->bug->dtable->fieldList['module']['dataSource'] = array('module' => 'tree', 'method' => 'getAllModulePairs', 'params' => 'bug');
/* 如果导出执行的bug,设置数据源。 */
/* In execution, set data source. */
@@ -678,6 +676,7 @@ class bug extends control
$this->config->bug->dtable->fieldList['execution']['dataSource'] = array('module' => 'execution', 'method' => 'getPairs', 'params' => $projectID);
}
}
$this->config->bug->dtable->fieldList['assignedTo']['dataSource'] = array('module' => 'user', 'method' => 'getPairs', 'params' => array());
$this->loadModel('transfer')->export('bug');
$this->fetch('file', 'export2' . $this->post->fileType, $_POST);