* finish task #2861.

This commit is contained in:
chenfeiCF
2017-01-06 14:39:02 +08:00
parent 0fc5d7a778
commit f26b724ec2
5 changed files with 116 additions and 83 deletions
+20
View File
@@ -653,6 +653,26 @@ class testtask extends control
}
}
/**
* Batch unlink cases.
*
* @param int $taskID
* @access public
* @return void
*/
public function batchUnlinkCases($taskID)
{
if(isset($_POST['caseIDList']))
{
$this->dao->delete()->from(TABLE_TESTRUN)
->where('task')->eq((int)$taskID)
->andWhere('`case`')->in($this->post->caseIDList)
->exec();
}
die(js::locate($this->createLink('testtask', 'cases', "taskID=$taskID")));
}
/**
* Run case.
*