// Small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17397 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
293245e89c
commit
b36247f993
1 file changed
+2
@@ -911,6 +911,8 @@ class ShopCore extends ObjectModel
|
|||||||
$sql .= ' AND '.$table_alias.'.id_shop = '.(int)self::$context_id_shop;
|
$sql .= ' AND '.$table_alias.'.id_shop = '.(int)self::$context_id_shop;
|
||||||
elseif (Shop::checkIdShopDefault($table))
|
elseif (Shop::checkIdShopDefault($table))
|
||||||
$sql .= ' AND '.$table_alias.'.id_shop = '.$alias.'.id_shop_default';
|
$sql .= ' AND '.$table_alias.'.id_shop = '.$alias.'.id_shop_default';
|
||||||
|
else
|
||||||
|
$sql .= ' AND '.$table_alias.'.id_shop IN ('.implode(', ', Shop::getContextListShopID()).')';
|
||||||
$sql .= (($on) ? ' AND '.$on : '').')';
|
$sql .= (($on) ? ' AND '.$on : '').')';
|
||||||
return $sql;
|
return $sql;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user