From eb15526141a98fbeee822e942bfa4e276320cbf0 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Sat, 21 Dec 2024 14:14:21 +0800 Subject: [PATCH] + [task#134172,doing,0.2h] add testtask::assignCase. --- module/testtask/control.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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.