* When execution manage products, make the normal product without 'has-branch' class.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user