Merge branch 'sprint/182_hufangzhou_18673' into 'master'

* Fix bug #18673.

See merge request easycorp/zentaopms!1483
This commit is contained in:
孙广明
2022-01-18 07:32:10 +00:00
+1 -1
View File
@@ -599,7 +599,7 @@ class bug extends control
/* Get executions. */
$executions = array(0 => '');
if(isset($projects[$projectID]) or $this->config->systemMode == 'classic') $executions += $this->product->getExecutionPairsByProduct($productID, $branch ? "0,$branch" : 0, 'id_desc', $projectID);
$execution = $executionID ? $this->execution->getByID($executionID) : '';
$execution = $executionID ? $this->loadModel('execution')->getByID($executionID) : '';
$executions = isset($executions[$executionID]) ? $executions : $executions + array($executionID => $execution->name);
/* Set custom. */