* finish task #2003.

This commit is contained in:
wangyidong
2014-08-18 07:14:09 +00:00
parent f5c3728f53
commit ddc3fd28ea
11 changed files with 143 additions and 24 deletions
+8 -1
View File
@@ -226,7 +226,14 @@ class testcase extends control
$response['result'] = 'success';
$response['message'] = '';
$caseID = $this->testcase->create($bugID);
$caseResult = $this->testcase->create($bugID);
$caseID = $caseResult['id'];
if($caseResult['status'] == 'existed')
{
$response['locate'] = $this->createLink('testcase', 'view', "caseID=$caseID");
$this->send($response);
}
if(dao::isError())
{
$response['result'] = 'fail';