* finish task #6434.

This commit is contained in:
wangyidong
2019-10-14 09:36:01 +08:00
parent 89e99f4745
commit 8897e5ab4e
5 changed files with 7 additions and 11 deletions
+2 -4
View File
@@ -79,7 +79,7 @@ class testsuite extends control
if(!empty($_POST))
{
$response['result'] = 'success';
$response['message'] = '';
$response['message'] = $this->lang->testsuite->successSaved;
$suiteID = $this->testsuite->create($productID);
if(dao::isError())
{
@@ -92,7 +92,6 @@ class testsuite extends control
$this->executeHooks($suiteID);
$response['locate'] = $this->createLink('testsuite', 'browse', "productID=$productID");
$response['message'] = $this->lang->testsuite->successSaved;
$this->send($response);
}
@@ -176,7 +175,7 @@ class testsuite extends control
if(!empty($_POST))
{
$response['result'] = 'success';
$response['message'] = '';
$response['message'] = $this->lang->testsuite->successSaved;
$changes = $this->testsuite->update($suiteID);
if(dao::isError())
{
@@ -193,7 +192,6 @@ class testsuite extends control
$this->executeHooks($suiteID);
$response['locate'] = inlink('view', "suiteID=$suiteID");
$response['message'] = $this->lang->testsuite->successSaved;
$this->send($response);
}