* close modal when create a testcase from story view.

This commit is contained in:
chenfeiCF
2016-11-22 16:06:44 +08:00
parent 9e4a7f5316
commit 176eb15d75
3 changed files with 34 additions and 2 deletions
+9
View File
@@ -220,6 +220,15 @@ class testcase extends control
$this->loadModel('action');
$this->action->create('case', $caseID, 'Opened');
/* If link from no head then reload. */
if(isonlybody())
{
$response['locate'] = 'reload';
$response['target'] = 'parent';
$this->send($response);
}
$response['locate'] = $this->createLink('testcase', 'browse', "productID={$_POST['product']}&branch=" . (isset($_POST['branch']) ? $_POST['branch'] : '') . "&browseType=byModule&args={$_POST['module']}");
$this->send($response);
}