* change the warnning error.

This commit is contained in:
wangchunsheng
2013-01-20 10:06:16 +00:00
parent 770c1e235b
commit d8aa1c1ea3
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -539,9 +539,14 @@ class bugModel extends model
$result = $this->dao->findById($resultID)->from(TABLE_TESTRESULT)->fetch();
if($caseID > 0)
{
$run = new stdclass();
$run->case = $this->loadModel('testcase')->getById($caseID, $result->version);
}
else
{
$run = $this->loadModel('testtask')->getRunById($result->run);
}
if($result and $result->caseResult == 'fail')
{
$title = $run->case->title;