FIX : We must remove empty values of $features array in fetchByProductCombination2ValuePairs() because some products can use only several attributes in their variations and not necessarily all. In this case, fetch doesn't work without my correction

This commit is contained in:
Gauthier PC portable 024 2022-07-07 10:17:56 +02:00
parent 4c5d43b42e
commit 77552fa32a

View File

@ -602,6 +602,8 @@ class ProductCombination
$prodcomb2val = new ProductCombination2ValuePair($this->db);
$prodcomb = new ProductCombination($this->db);
$features = array_filter($features);
foreach ($features as $attr => $attr_val) {
$actual_comp[$attr] = $attr_val;
}