// Fix langMultiShop in ObjectModel
This commit is contained in:
1 parent
4f663545bb
commit
8b8d748afc
1 file changed
+1
-1
@@ -197,7 +197,7 @@ abstract class ObjectModelCore
|
|||||||
{
|
{
|
||||||
$sql = 'SELECT * FROM `'.pSQL(_DB_PREFIX_.$this->def['table']).'_lang`
|
$sql = 'SELECT * FROM `'.pSQL(_DB_PREFIX_.$this->def['table']).'_lang`
|
||||||
WHERE `'.$this->def['primary'].'` = '.(int)$id
|
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);
|
$result = Db::getInstance()->executeS($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
foreach ($result as $row)
|
foreach ($result as $row)
|
||||||
|
|||||||
Reference in new issue
Block a user