* adjust db for the testcase and fix a bug for result of testtask.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-11-30 05:35:57 +00:00
parent 37c0fc5895
commit d86e801f9c
9 changed files with 36 additions and 31 deletions
+3 -3
View File
@@ -405,11 +405,11 @@ class testtask extends control
* @access public
* @return void
*/
public function results($runID, $caseID = 0)
public function results($runID, $caseID = 0, $version = 0)
{
if($caseID)
if($caseID and $version)
{
$this->view->case = $this->loadModel('testcase')->getByID($caseID);
$this->view->case = $this->loadModel('testcase')->getByID($caseID, $version);
$this->view->results = $this->testtask->getResults(0, $caseID);
}
else