* change the warnning error.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -517,7 +517,11 @@ class testtask extends control
|
||||
}
|
||||
|
||||
if(!$caseID) $run = $this->testtask->getRunById($runID);
|
||||
if($caseID) $run->case = $this->loadModel('testcase')->getById($caseID, $version);
|
||||
if($caseID)
|
||||
{
|
||||
$run = new stdclass();
|
||||
$run->case = $this->loadModel('testcase')->getById($caseID, $version);
|
||||
}
|
||||
|
||||
$nextCase = '';
|
||||
$caseID = $caseID ? $caseID : $run->case->id;
|
||||
|
||||
Reference in New Issue
Block a user