* Change sub status when status is changed and sub status is not set, and record the changes.

This commit is contained in:
liugang
2019-08-06 18:05:31 +08:00
parent 6cbd736ddc
commit 506aaa3d74
6 changed files with 56 additions and 24 deletions
+8 -3
View File
@@ -776,10 +776,15 @@ class testcase extends control
{
if($_POST)
{
$this->testcase->review($caseID);
$changes = $this->testcase->review($caseID);
if(dao::isError()) die(js::error(dao::getError()));
$result = $this->post->result;
$this->loadModel('action')->create('case', $caseID, 'Reviewed', $this->post->comment, ucfirst($result));
if($changes)
{
$result = $this->post->result;
$actionID = $this->loadModel('action')->create('case', $caseID, 'Reviewed', $this->post->comment, ucfirst($result));
$this->action->logHistory($actionID, $changes);
}
$this->executeHooks($caseID);