* Compatible with argument type for calling the getBuildPairs method.
This commit is contained in:
@@ -945,7 +945,7 @@ class testtask extends control
|
||||
$this->view->runID = $runID;
|
||||
$this->view->results = $results;
|
||||
$this->view->type = $type;
|
||||
$this->view->builds = $this->loadModel('build')->getBuildPairs($case->product, $case->branch);
|
||||
$this->view->builds = $this->loadModel('build')->getBuildPairs(array($case->product), $case->branch);
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed, noletter');
|
||||
$this->view->testtasks = $this->testtask->getPairs($case->product);
|
||||
|
||||
@@ -997,7 +997,7 @@ class testtask extends control
|
||||
$this->loadModel('qa')->setMenu($productID);
|
||||
|
||||
$executions = empty($productID) ? array() : $this->product->getExecutionPairsByProduct($productID);
|
||||
$builds = empty($productID) ? array() : $this->loadModel('build')->getBuildPairs($productID, 'all', 'notrunk', 0, 'execution', '', false);
|
||||
$builds = empty($productID) ? array() : $this->loadModel('build')->getBuildPairs(array($productID), 'all', 'notrunk', 0, 'execution', '', false);
|
||||
|
||||
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->importUnitResult;
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter|nodeleted|noclosed');
|
||||
|
||||
@@ -319,7 +319,7 @@ class testtaskZen extends testtask
|
||||
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->create;
|
||||
$this->view->product = $this->loadModel('product')->getByID($productID);
|
||||
$this->view->executions = $productID ? $this->product->getExecutionPairsByProduct($productID, '', $projectID, 'stagefilter') : array();
|
||||
$this->view->builds = $productID ? $this->loadModel('build')->getBuildPairs($productID, 'all', 'notrunk,withexecution', $projectID, 'project', '', false) : array();
|
||||
$this->view->builds = $productID ? $this->loadModel('build')->getBuildPairs(array($productID), 'all', 'notrunk,withexecution', $projectID, 'project', '', false) : array();
|
||||
$this->view->testreports = array('') + $this->loadModel('testreport')->getPairs($productID);
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed|qdfirst|nodeleted');
|
||||
$this->view->projectID = $projectID;
|
||||
@@ -359,7 +359,7 @@ class testtaskZen extends testtask
|
||||
$this->view->project = $this->project->getByID($projectID);
|
||||
$this->view->productID = $productID;
|
||||
$this->view->executions = $executions;
|
||||
$this->view->builds = empty($productID) ? array() : $this->loadModel('build')->getBuildPairs($productID, 'all', 'noempty,notrunk,withexecution', $executionID ? $executionID : $task->project, $executionID ? 'execution' : 'project', $task->build, false);
|
||||
$this->view->builds = empty($productID) ? array() : $this->loadModel('build')->getBuildPairs(array($productID), 'all', 'noempty,notrunk,withexecution', $executionID ? $executionID : $task->project, $executionID ? 'execution' : 'project', $task->build, false);
|
||||
$this->view->testreports = $this->loadModel('testreport')->getPairs($task->product, $task->testreport);
|
||||
$this->view->users = $this->loadModel('user')->getPairs('nodeleted|noclosed', $task->owner);
|
||||
$this->view->contactLists = $this->user->getContactLists($this->app->user->account, 'withnote');
|
||||
|
||||
Reference in New Issue
Block a user