[-] BO : #PSCFV-2511 - Country visible in all shop

// Normalize
This commit is contained in:
mDeflotte committed 2012-05-23 07:53:36 +00:00
1 parent fa71bf8924
commit 24eb8d1cda
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ class CountryCore extends ObjectModel
$sql = 'SELECT cl.*,c.*, cl.`name` AS country, z.`name` AS zone $sql = 'SELECT cl.*,c.*, cl.`name` AS country, z.`name` AS zone
FROM `'._DB_PREFIX_.'country` c FROM `'._DB_PREFIX_.'country` c
'.Shop::addSqlAssociation('country', 'c', false).' '.Shop::addSqlAssociation('country', 'c').'
LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (c.`id_country` = cl.`id_country` AND cl.`id_lang` = '.(int)$id_lang.') LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (c.`id_country` = cl.`id_country` AND cl.`id_lang` = '.(int)$id_lang.')
LEFT JOIN `'._DB_PREFIX_.'zone` z ON z.`id_zone` = c.`id_zone` LEFT JOIN `'._DB_PREFIX_.'zone` z ON z.`id_zone` = c.`id_zone`
WHERE 1' WHERE 1'