[-] BO : fix #PSCFV-2953
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16164 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -57,7 +57,7 @@ class FavoriteProduct extends ObjectModel
|
||||
public static function getFavoriteProducts($id_customer, $id_lang)
|
||||
{
|
||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
|
||||
SELECT fp.`id_shop`, p.`id_product`, pl.`description_short`, pl.`link_rewrite`,
|
||||
SELECT DISTINCT p.`id_product`, fp.`id_shop`, pl.`description_short`, pl.`link_rewrite`,
|
||||
pl.`name`, i.`id_image`, CONCAT(p.`id_product`, \'-\', i.`id_image`) as image
|
||||
FROM `'._DB_PREFIX_.'favorite_product` fp
|
||||
LEFT JOIN `'._DB_PREFIX_.'product` p ON (p.`id_product` = fp.`id_product`)
|
||||
|
||||
@@ -33,10 +33,11 @@ $('document').ready(function()
|
||||
var parent = $(this).parent().parent();
|
||||
|
||||
$.ajax({
|
||||
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)|escape:'htmlall':'UTF-8'}",
|
||||
url: "{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}",
|
||||
type: "POST",
|
||||
data: {
|
||||
'id_product': idFavoriteProduct
|
||||
'id_product': idFavoriteProduct,
|
||||
'ajax': true
|
||||
},
|
||||
success: function(result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user