* Adjust codes.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user