* Fix bug.

This commit is contained in:
leiyong
2021-04-01 09:57:12 +03:00
parent b24b6a2744
commit abd8af87a6
15 changed files with 31 additions and 15 deletions
+2 -1
View File
@@ -588,7 +588,8 @@ class testcase extends control
*/
public function view($caseID, $version = 0, $from = 'testcase', $taskID = 0)
{
$case = $this->testcase->getById($caseID, $version);
$caseID = (int)$caseID;
$case = $this->testcase->getById($caseID, $version);
if(!$case) die(js::error($this->lang->notFound) . js::locate('back'));
if($case->auto == 'unit')
{