diff --git a/module/testcase/control.php b/module/testcase/control.php index 673b9edd7a..6818ec69a3 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1267,16 +1267,18 @@ class testcase extends control } /** + * 查看自动化脚本。 * Show script. * * @param int $caseID * @access public * @return void */ - public function showScript($caseID) + public function showScript(int $caseID) { $case = $this->testcase->getByID($caseID); if($case) $case->script = html_entity_decode($case->script); + $this->view->case = $case; $this->display(); }