* Refactor the review view.

This commit is contained in:
daitingting
2023-06-26 01:28:53 +00:00
parent 35102af09e
commit 8df51c2a07
7 changed files with 79 additions and 9 deletions
+6 -5
View File
@@ -1229,7 +1229,7 @@ class testcase extends control
if($_POST)
{
$changes = $this->testcase->review($caseID);
if(dao::isError()) return print(js::error(dao::getError()));
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
if(is_array($changes))
{
@@ -1239,13 +1239,14 @@ class testcase extends control
$this->executeHooks($caseID);
return print(js::reload('parent.parent'));
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'load' => true));
}
}
$this->view->users = $this->user->getPairs('noletter|noclosed|nodeleted');
$this->view->case = $this->testcase->getById($caseID);
$this->view->actions = $this->loadModel('action')->getList('case', $caseID);
$this->view->testcase = $this->testcase->getByID($caseID);
$this->view->users = $this->user->getPairs('noletter|noclosed|nodeleted');
$this->view->case = $this->testcase->getById($caseID);
$this->view->actions = $this->loadModel('action')->getList('case', $caseID);
$this->display();
}