// 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:
rMalie
2012-01-27 09:59:13 +00:00
parent e82ffe9131
commit cd726ecb4e

View File

@@ -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);