From cd540ac5339fcde4a3c9f2efcede1ca8dfee374d Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Mon, 19 Sep 2016 18:01:20 +0200 Subject: [PATCH] fix attribute image --- modules/braderie/ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/braderie/ajax.php b/modules/braderie/ajax.php index 55aa790b..41fbeb20 100644 --- a/modules/braderie/ajax.php +++ b/modules/braderie/ajax.php @@ -77,7 +77,7 @@ function getProductId() LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product`) LEFT JOIN `'._DB_PREFIX_.'product_attribute_combination` pac ON (pac.`id_product_attribute` = pa.`id_product_attribute`) LEFT JOIN `'._DB_PREFIX_.'attribute_lang` al ON (al.`id_attribute` = pac.`id_attribute`) - LEFT JOIN `'._DB_PREFIX_.'product_attribute_image` i ON (i.`id_product` = pa.`id_product`) + LEFT JOIN `'._DB_PREFIX_.'product_attribute_image` i ON (i.`id_product_attribute` = pa.`id_product_attribute`) WHERE pa.`ean13` = '.pSQL($ean).' AND pl.`id_lang` = '.(int)$cookie->id_lang.' ORDER BY pa.`id_product_attribute` DESC