* finish task #2861.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user