[-] BO : Bug fixed related to #PSCFV-2490 - Created group doesn't appear in my shop

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15515 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fBrignoli
2012-05-21 14:30:37 +00:00
parent 19c239b0b7
commit f76832e0ff
+1 -2
View File
@@ -75,8 +75,7 @@ class GroupCore extends ObjectModel
{
$shop_criteria = '';
if ($id_shop)
$shop_criteria = 'LEFT JOIN `'._DB_PREFIX_.'group_shop` gs ON (gs.`id_group` = g.`id_group`)
WHERE `id_shop` = '.(int)$id_shop;
$shop_criteria = Shop::addSqlAssociation('group', 'g');
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT g.`id_group`, g.`reduction`, g.`price_display_method`, gl.`name`