* Change method params for product getExecutionPairsByProduct.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user