* 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
@@ -158,6 +158,8 @@ class testreportModel extends model
public function getById($reportID)
{
$report = $this->dao->select('*')->from(TABLE_TESTREPORT)->where('id')->eq($reportID)->fetch();
if(!$report) return false;
$report = $this->loadModel('file')->replaceImgURL($report, 'report');
$report->files = $this->file->getByObject('testreport', $reportID);
return $report;