* When execution manage products, make the normal product without 'has-branch' class.

This commit is contained in:
qiyu-xie
2021-07-20 08:24:19 +08:00
parent 5175ff9222
commit c9ee925c65
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ class branchModel extends model
{
if($products[$branch->product]->type == 'normal')
{
$branchGroups[$branch->product][0] = '';
if(strpos($params, 'ignoreNormal') === false) $branchGroups[$branch->product][0] = '';
}
else
{
+1 -1
View File
@@ -2236,7 +2236,7 @@ class execution extends control
$this->view->execution = $execution;
$this->view->linkedProducts = $linkedProducts;
$this->view->unmodifiableProducts = $unmodifiableProducts;
$this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($allProducts), '', $linkedBranches);
$this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($allProducts), 'ignoreNormal', $linkedBranches);
$this->display();
}