From 943e27d41ca96e481e2017977f01524364a0a542 Mon Sep 17 00:00:00 2001 From: zenggang Date: Wed, 21 Sep 2022 02:05:58 +0000 Subject: [PATCH] * Code for feedback#953 --- module/bug/control.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/module/bug/control.php b/module/bug/control.php index a77e087cab..9f3d39db7c 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -2313,6 +2313,15 @@ class bug extends control { $this->loadModel('port'); $this->session->set('bugPortParams', array('productID' => $productID, 'executionID' => $executionID, 'branch' => 'all')); + if(!$productID) + { + $this->config->bug->datatable->fieldList['module']['dataSource']['method'] = 'getAllModulePairs'; + $this->config->bug->datatable->fieldList['module']['dataSource']['params'] = 'bug'; + + $this->config->bug->datatable->fieldList['project']['dataSource'] = array('module' => 'project', 'method' => 'getPairsByIdList', 'params' => $executionID); + $this->config->bug->datatable->fieldList['execution']['dataSource'] = array('module' => 'execution', 'method' => 'getPairs', 'params' => $executionID); + } + $this->port->export('bug'); $this->fetch('file', 'export2' . $_POST['fileType'], $_POST); }