Merge branch 'sprint/176_songchenxuan_45539' into 'master'

Sprint/176 songchenxuan 45539

See merge request easycorp/zentaopms!870
This commit is contained in:
朱金勇
2021-12-10 06:04:23 +00:00
4 changed files with 12 additions and 4 deletions
+3 -3
View File
@@ -803,9 +803,9 @@ class bug extends control
}
/* Get product info. */
$productID = $bug->product;
$product = $this->loadModel('product')->getByID($productID);
$branches = $product->type == 'normal' ? array() : $this->loadModel('branch')->getPairs($bug->product);
$productID = $bug->product;
$product = $this->loadModel('product')->getByID($productID);
$branches = $product->type == 'normal' ? array() : $this->loadModel('branch')->getPairs($bug->product);
$this->executeHooks($bugID);