* Fix bug of create bug.

This commit is contained in:
xieqiyu
2023-01-05 10:13:34 +08:00
parent ee5aacbd35
commit 97d4792fbf

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 and $stepIdList)? $this->loadModel('file')->getByObject('stepResult', $resultID, str_replace('_', ',', $stepIdList)) : array();
$this->view->resultFiles = (!empty($resultID) and !empty($stepIdList)) ? $this->loadModel('file')->getByObject('stepResult', $resultID, str_replace('_', ',', $stepIdList)) : array();
$this->view->runID = $runID;
$this->view->version = $version;
$this->view->testtask = $testtask;