This commit is contained in:
liumengyi
2024-02-05 17:11:45 +08:00
committed by caoyanyi
parent 234fdb72b6
commit 8f3d8d54d7
+1 -1
View File
@@ -252,7 +252,7 @@ class testreport extends control
public function view(int $reportID, string $tab = 'basic', int $recTotal = 0, int $recPerPage = 100, int $pageID = 1)
{
$report = $this->testreport->getById($reportID);
if(!$report) return $this->send(array('result' => 'fail', 'load' => array('alert' => $this->lang->notFound, 'locate' => array('load' => true))));
if(!$report) return $this->send(array('result' => 'fail', 'load' => array('alert' => $this->lang->notFound)));
/* Set session. */
$this->session->project = $report->project;