* Fix bug#31467.

This commit is contained in:
xieqiyu
2023-01-05 10:05:45 +08:00
parent c2fd82381d
commit ee5aacbd35
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -665,7 +665,7 @@ class bug extends control
$this->view->storyID = $storyID;
$this->view->buildID = $buildID;
$this->view->caseID = $caseID;
$this->view->resultFiles = $resultID ? $this->loadModel('file')->getByObject('stepResult', $resultID) : array();
$this->view->resultFiles = ($resultID and $stepIdList)? $this->loadModel('file')->getByObject('stepResult', $resultID, str_replace('_', ',', $stepIdList)) : array();
$this->view->runID = $runID;
$this->view->version = $version;
$this->view->testtask = $testtask;
+1 -1
View File
@@ -46,7 +46,7 @@ class fileModel extends model
->where('objectType')->eq($objectType)
->andWhere('objectID')->in($objectID)
->andWhere('extra')->ne('editor')
->beginIF($extra)->andWhere('extra')->eq($extra)
->beginIF($extra)->andWhere('extra')->in($extra)->fi()
->andWhere('deleted')->eq('0')
->orderBy('id')
->fetchAll('id');