diff --git a/module/testtask/control.php b/module/testtask/control.php index aa47c17395..d5ec789a4c 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -1006,6 +1006,29 @@ class testtask extends control $this->display(); } + /** + * 指派测试用例。 + * Assign a testcase. + * + * @param int $runID + * @access public + * @return void + */ + public function assignCase(int $runID) + { + $run = $this->testtask->getRunById($runID); + + if(!empty($_POST)) + { + return $this->sendSuccess(array('message' => $message, 'closeModal' => true, 'load' => true)); + } + + /* Assign. */ + $this->view->users = $this->loadModel('user')->getPairs('noclosed, noletter'); + $this->view->run = $run; + $this->display(); + } + /** * 批量指派测试单中的用例。 * Batch assign cases in a testtask.