* Fix bug #29339.
This commit is contained in:
@@ -758,13 +758,15 @@ class testcase extends control
|
||||
|
||||
$caseID = (int)$caseID;
|
||||
$case = $this->testcase->getById($caseID, $version);
|
||||
$case = $this->loadModel('story')->checkNeedConfirm($case);
|
||||
|
||||
if(!$case)
|
||||
{
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'fail', 'message' => '404 Not found'));
|
||||
return print(js::error($this->lang->notFound) . js::locate($this->createLink('qa', 'index')));
|
||||
}
|
||||
|
||||
$case = $this->loadModel('story')->checkNeedConfirm($case);
|
||||
|
||||
if($from == 'testtask')
|
||||
{
|
||||
$run = $this->loadModel('testtask')->getRunByCase($taskID, $caseID);
|
||||
|
||||
Reference in New Issue
Block a user