Merge pull request #21461 from atm-gauthier/FIX/fetchByProductCombination2ValuePairs
FIX : We must remove empty values from $features array in fetchByProduc…
This commit is contained in:
commit
d7c1ca1083
@ -602,6 +602,10 @@ class ProductCombination
|
|||||||
$prodcomb2val = new ProductCombination2ValuePair($this->db);
|
$prodcomb2val = new ProductCombination2ValuePair($this->db);
|
||||||
$prodcomb = new ProductCombination($this->db);
|
$prodcomb = new ProductCombination($this->db);
|
||||||
|
|
||||||
|
$features = array_filter($features, function ($v) {
|
||||||
|
return !empty($v);
|
||||||
|
});
|
||||||
|
|
||||||
foreach ($features as $attr => $attr_val) {
|
foreach ($features as $attr => $attr_val) {
|
||||||
$actual_comp[$attr] = $attr_val;
|
$actual_comp[$attr] = $attr_val;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user