* Adjust codes.

This commit is contained in:
daitingting
2018-07-03 16:26:44 +08:00
parent 7712dd4eab
commit 537699060f
7 changed files with 16 additions and 6 deletions
+2
View File
@@ -354,6 +354,8 @@ class testreport extends control
public function view($reportID, $from = 'product')
{
$report = $this->testreport->getById($reportID);
if(!$report) die(js::error($this->lang->notFound) . js::locate('back'));
$project = $this->project->getById($report->project);
if($from == 'product' and is_numeric($report->product))
{