From aa64e0bf287c9c084595bd117a5980ac0d26f858 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Wed, 29 Feb 2012 09:34:45 +0000 Subject: [PATCH] // Fix redirection problem with products --- classes/Product.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index c94fc4a18..e5ee1379b 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -4851,7 +4851,8 @@ class ProductCore extends ObjectModel SELECT asso_shop_product.`id_category_default` FROM `'._DB_PREFIX_.'product` p '.Shop::addSqlAssociation('product', 'p').' - WHERE asso_shop_product.`id_shop` = '.(int)$id_shop); + WHERE asso_shop_product.`id_shop` = '.(int)$id_shop.' + AND p.`id_product` = '.(int)$this->id); }