Merge branch 'mayue_fix_bug#20316' into 'master'

* Fix bug #20316.

See merge request easycorp/zentaopms!2674
This commit is contained in:
孙广明
2022-04-01 06:04:15 +00:00
+1 -1
View File
@@ -335,7 +335,7 @@ class tree extends control
if($showProduct)
{
$product = $this->loadModel('product')->getById($module->root);
if($product->type != 'normal') $this->view->branches = $this->loadModel('branch')->getPairs($module->root);
if($product->type != 'normal') $this->view->branches = $this->loadModel('branch')->getPairs($module->root, 'active');
$this->view->product = $product;
$this->view->products = $this->product->getPairs('', $product->program);
}