Skip to content

Commit

Permalink
Merge pull request PrestaShop#30416 from PululuK/add-id_feature_value…
Browse files Browse the repository at this point in the history
…-in-product-feature-values

Add `id_feature_value` in `Product::getFrontFeaturesStatic`
  • Loading branch information
marsaldev authored Nov 30, 2022
2 parents d576959 + 07f04bf commit 8d4084e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -5933,7 +5933,7 @@ public static function getFrontFeaturesStatic($id_lang, $id_product)
if (!array_key_exists($id_product . '-' . $id_lang, self::$_frontFeaturesCache)) {
self::$_frontFeaturesCache[$id_product . '-' . $id_lang] = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(
'
SELECT name, value, pf.id_feature, f.position
SELECT name, value, pf.id_feature, f.position, fvl.id_feature_value
FROM ' . _DB_PREFIX_ . 'feature_product pf
LEFT JOIN ' . _DB_PREFIX_ . 'feature_lang fl ON (fl.id_feature = pf.id_feature AND fl.id_lang = ' . (int) $id_lang . ')
LEFT JOIN ' . _DB_PREFIX_ . 'feature_value_lang fvl ON (fvl.id_feature_value = pf.id_feature_value AND fvl.id_lang = ' . (int) $id_lang . ')
Expand Down

0 comments on commit 8d4084e

Please sign in to comment.