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:
Laurent Destailleur 2022-07-10 18:57:31 +02:00 committed by GitHub
commit d7c1ca1083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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