[-] FO : in multistore payment module restrictions by customer group was not applied to specific shop

This commit is contained in:
Daniele Giachino
2013-11-07 15:18:59 +01:00
parent 03ad842697
commit 8c8340db4e
+1 -1
View File
@@ -324,7 +324,7 @@ class HookCore extends ObjectModel
if ($frontend)
{
$sql->leftJoin('module_group', 'mg', 'mg.`id_module` = m.`id_module`');
$sql->where('mg.`id_group` IN ('.implode(', ', $groups).')');
$sql->where('mg.id_shop = '.((int)$context->shop->id).' AND mg.`id_group` IN ('.implode(', ', $groups).')');
$sql->groupBy('hm.id_hook, hm.id_module');
}