* Change method params for product getExecutionPairsByProduct.

This commit is contained in:
caoyanyi
2023-09-20 16:28:19 +08:00
parent 392c622d9c
commit dcf3895e31
8 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -250,7 +250,7 @@ class testtask extends control
$this->view->product = $this->product->getByID($productID);
$this->view->projectID = $projectID;
$this->view->executionID = $executionID;
$this->view->executions = $productID ? $this->loadModel('product')->getExecutionPairsByProduct($productID, '', 'id_desc', $projectID, 'stagefilter') : array();
$this->view->executions = $productID ? $this->loadModel('product')->getExecutionPairsByProduct($productID, '', $projectID, 'stagefilter') : array();
$this->view->builds = $productID ? $this->loadModel('build')->getBuildPairs($productID, 'all', 'notrunk,withexecution', $projectID, 'project', '', false) : array();
$this->view->build = $build;
$this->view->testreports = array('') + $this->loadModel('testreport')->getPairs($productID);
@@ -1057,7 +1057,7 @@ class testtask extends control
$this->app->rawModule = 'testcase';
$projectID = $this->app->tab == 'qa' ? 0 : $this->session->project;
$executions = empty($productID) ? array() : $this->loadModel('product')->getExecutionPairsByProduct($productID, '', 'id_desc', $projectID);
$executions = empty($productID) ? array() : $this->loadModel('product')->getExecutionPairsByProduct($productID, '', $projectID);
$builds = empty($productID) ? array() : $this->loadModel('build')->getBuildPairs($productID, 'all', 'notrunk', 0, 'execution', '', false);
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->importUnitResult;
+1 -1
View File
@@ -284,7 +284,7 @@ class testtaskZen extends testtask
$productID = $productID ? $productID : key($this->products);
$projectID = $this->lang->navGroup->testtask == 'qa' ? 0 : $this->session->project;
$executionID = $task->execution;
$executions = empty($productID) ? array() : $this->product->getExecutionPairsByProduct($productID, 0, 'id_desc', $projectID);
$executions = empty($productID) ? array() : $this->product->getExecutionPairsByProduct($productID, 0, $projectID);
if($executionID && !isset($executions[$executionID]))
{
$execution = $this->loadModel('execution')->getById($executionID);