* fix a bug for testcase.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-12-01 02:31:28 +00:00
parent 6fab5c6fb8
commit 1604b77d0b
+1 -1
View File
@@ -407,7 +407,7 @@ class testtask extends control
*/
public function results($runID, $caseID = 0, $version = 0)
{
if($caseID and $version)
if($caseID)
{
$this->view->case = $this->loadModel('testcase')->getByID($caseID, $version);
$this->view->results = $this->testtask->getResults(0, $caseID);