* Fix bug#31467.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user