* testtask: refactor the linkCase method.

This commit is contained in:
liugang
2023-10-08 08:38:57 +08:00
parent 56150d3106
commit 39bde584a9
3 changed files with 20 additions and 20 deletions
+3 -1
View File
@@ -737,8 +737,10 @@ class testtask extends control
{
if(!empty($_POST))
{
$this->testtask->linkCase($taskID, $type);
$runs = form::batchData($this->config->testtask->form->linkCase)->get();
$this->testtask->linkCase($taskID, $type, $runs);
if(dao::isError()) return $this->send(array('result' => 'success', 'message' => dao::getError()));
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => inlink('cases', "taskID={$taskID}")));
}