// Fix multishop in objectModel (langs were not correctly generated when an employee has not all auths on shops)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15582 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
7c77223b23
commit
cb4527a95b
2 files changed
+12
-1
No files matched your search
@@ -497,6 +497,15 @@ class ShopCore extends ObjectModel
|
||||
}
|
||||
}
|
||||
|
||||
public static function getCompleteListOfShopsID()
|
||||
{
|
||||
$list = array();
|
||||
$sql = 'SELECT id_shop FROM '._DB_PREFIX_.'shop';
|
||||
foreach (Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql) as $row)
|
||||
$list[] = $row['id_shop'];
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get shops list
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user