* Fix bug#14091.

This commit is contained in:
qiyu-xie
2021-08-09 14:32:14 +08:00
parent b22f1df1d6
commit 506d2ec05f
7 changed files with 22 additions and 7 deletions
+3 -1
View File
@@ -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'));
}
}
+3 -1
View File
@@ -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
{
+3 -1
View File
@@ -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'));
}
}
+3 -1
View File
@@ -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'));
}
}
+2 -1
View File
@@ -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'));
}
}
+4 -1
View File
@@ -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'));
}
}
+4 -1
View File
@@ -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'));
}
}