// Fix langMultiShop in ObjectModel
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13132 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -197,7 +197,7 @@ abstract class ObjectModelCore
|
||||
{
|
||||
$sql = 'SELECT * FROM `'.pSQL(_DB_PREFIX_.$this->def['table']).'_lang`
|
||||
WHERE `'.$this->def['primary'].'` = '.(int)$id
|
||||
.(($this->id_shop) ? ' AND `id_shop` = '.$this->id_shop : '');
|
||||
.(($this->id_shop && $this->isLangMultishop()) ? ' AND `id_shop` = '.$this->id_shop : '');
|
||||
$result = Db::getInstance()->executeS($sql);
|
||||
if ($result)
|
||||
foreach ($result as $row)
|
||||
|
||||
Reference in New Issue
Block a user