// Fix restriction on CMS categories #PSFV-403
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12743 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -191,6 +191,10 @@ class CMSCore extends ObjectModel
|
||||
|
||||
if ($active)
|
||||
$sql->where('c.active = 1');
|
||||
|
||||
if ($id_cms_category)
|
||||
$sql->where('c.id_cms_category = '.(int)$id_cms_category);
|
||||
|
||||
$sql->orderBy('position');
|
||||
|
||||
return Db::getInstance()->executeS($sql);
|
||||
|
||||
Reference in New Issue
Block a user