* Fix bug#14091.
This commit is contained in:
@@ -1569,7 +1569,9 @@ class bug extends control
|
||||
$this->executeHooks($bugID);
|
||||
|
||||
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess));
|
||||
die(js::locate($this->session->bugList, 'parent'));
|
||||
|
||||
$locateLink = $this->session->bugList ? $this->session->bugList : inlink('browse', "productID={$bug->product}");
|
||||
die(js::locate($locateLink, 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +274,9 @@ class build extends control
|
||||
*/
|
||||
public function delete($buildID, $confirm = 'no')
|
||||
{
|
||||
if($confirm == 'no') { die(js::confirm($this->lang->build->confirmDelete, $this->createLink('build', 'delete', "buildID=$buildID&confirm=yes")));
|
||||
if($confirm == 'no')
|
||||
{
|
||||
die(js::confirm($this->lang->build->confirmDelete, $this->createLink('build', 'delete', "buildID=$buildID&confirm=yes")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -250,7 +250,9 @@ class release extends control
|
||||
}
|
||||
return $this->send($response);
|
||||
}
|
||||
die(js::locate($this->session->releaseList, 'parent'));
|
||||
|
||||
$locateLink = $this->session->releaseList ? $this->session->releaseList : inlink('browse', "productID={$release->product}");
|
||||
die(js::locate($locateLink, 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -994,7 +994,9 @@ class story extends control
|
||||
$this->executeHooks($storyID);
|
||||
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'success'));
|
||||
die(js::locate($this->session->storyList, 'parent'));
|
||||
|
||||
$locateLink = $this->session->storyList ? $this->session->storyList : $this->createLink('product', 'browse', "productID={$story->product}");
|
||||
die(js::locate($locateLink, 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1302,7 +1302,8 @@ class task extends control
|
||||
|
||||
$this->executeHooks($taskID);
|
||||
|
||||
return print(js::locate($this->session->taskList, 'parent'));
|
||||
$locateLink = $this->session->taskList ? $this->session->taskList : $this->createLink('execution', 'task', "executionID={$task->execution}");
|
||||
return print(js::locate($locateLink, 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -995,6 +995,7 @@ class testcase extends control
|
||||
}
|
||||
else
|
||||
{
|
||||
$case = $this->testcase->getById($caseID);
|
||||
$this->testcase->delete(TABLE_CASE, $caseID);
|
||||
|
||||
$this->executeHooks($caseID);
|
||||
@@ -1014,7 +1015,9 @@ class testcase extends control
|
||||
}
|
||||
return $this->send($response);
|
||||
}
|
||||
die(js::locate($this->session->caseList, 'parent'));
|
||||
|
||||
$locateLink = $this->session->caseList ? $this->session->caseList : inlink('browse', "productID={$case->product}");
|
||||
die(js::locate($locateLink, 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -583,8 +583,11 @@ class testreport extends control
|
||||
}
|
||||
else
|
||||
{
|
||||
$testreport = $this->testreport->getById($reportID);
|
||||
$locateLink = $this->session->reportList ? $this->session->reportList : inlink('browse', "productID={$testreport->product}");
|
||||
|
||||
$this->testreport->delete(TABLE_TESTREPORT, $reportID);
|
||||
die(js::locate($this->session->reportList, 'parent'));
|
||||
die(js::locate($locateLink, 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user