* Add test case.

This commit is contained in:
caoyanyi
2023-01-29 11:27:22 +08:00
parent c81992a1c2
commit 97506ed3c1
4 changed files with 108 additions and 10 deletions
+1 -1
View File
@@ -2283,7 +2283,7 @@ class executionModel extends model
$productType = 'normal';
$productNum = count($products);
$productPairs = array(0 => '');
$branches = $this->loadModel('project')->getBranchesByProject($execution->id);
$branches = empty($execution) ? array() : $this->loadModel('project')->getBranchesByProject($execution->id);
foreach($products as $product)
{