* finish task #6434.
This commit is contained in:
@@ -258,7 +258,7 @@ class bug extends control
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$response['result'] = 'success';
|
||||
$response['message'] = '';
|
||||
$response['message'] = $this->lang->saveSuccess;
|
||||
|
||||
/* Set from param if there is a object to transfer bug. */
|
||||
$bugResult = $this->bug->create($from = isset($fromObjectIDKey) ? $fromObjectIDKey : '');
|
||||
|
||||
@@ -35,7 +35,7 @@ class caselib extends control
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$response['result'] = 'success';
|
||||
$response['message'] = '';
|
||||
$response['message'] = $this->lang->saveSuccess;
|
||||
$libID = $this->caselib->create();
|
||||
if(dao::isError())
|
||||
{
|
||||
@@ -45,7 +45,6 @@ class caselib extends control
|
||||
}
|
||||
$this->loadModel('action')->create('caselib', $libID, 'opened');
|
||||
$response['locate'] = $this->createLink('caselib', 'browse', "libID=$libID");
|
||||
$response['message'] = $this->lang->saveSuccess;
|
||||
$this->send($response);
|
||||
}
|
||||
|
||||
@@ -73,7 +72,7 @@ class caselib extends control
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$response['result'] = 'success';
|
||||
$response['message'] = '';
|
||||
$response['message'] = $this->lang->saveSuccess;
|
||||
$changes = $this->caselib->update($libID);
|
||||
if(dao::isError())
|
||||
{
|
||||
@@ -90,7 +89,6 @@ class caselib extends control
|
||||
$this->executeHooks($libID);
|
||||
|
||||
$response['locate'] = inlink('view', "libID=$libID");
|
||||
$response['message'] = $this->lang->saveSuccess;
|
||||
$this->send($response);
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ class task extends control
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$response['result'] = 'success';
|
||||
$response['message'] = '';
|
||||
$response['message'] = $this->lang->saveSuccess;
|
||||
|
||||
if($this->post->project) $projectID = $this->post->project;
|
||||
$tasksID = $this->task->create($projectID);
|
||||
|
||||
@@ -217,7 +217,7 @@ class testcase extends control
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$response['result'] = 'success';
|
||||
$response['message'] = '';
|
||||
$response['message'] = $this->lang->saveSuccess;
|
||||
|
||||
$caseResult = $this->testcase->create($bugID);
|
||||
if(!$caseResult or dao::isError())
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user