// Fix restriction on CMS categories #PSFV-403
This commit is contained in:
1 parent
5aeb8d6e1e
commit
df1c03e647
1 file changed
+4
@@ -191,6 +191,10 @@ class CMSCore extends ObjectModel
|
|||||||
|
|
||||||
if ($active)
|
if ($active)
|
||||||
$sql->where('c.active = 1');
|
$sql->where('c.active = 1');
|
||||||
|
|
||||||
|
if ($id_cms_category)
|
||||||
|
$sql->where('c.id_cms_category = '.(int)$id_cms_category);
|
||||||
|
|
||||||
$sql->orderBy('position');
|
$sql->orderBy('position');
|
||||||
|
|
||||||
return Db::getInstance()->executeS($sql);
|
return Db::getInstance()->executeS($sql);
|
||||||
|
|||||||
Reference in new issue
Block a user