// Fix restriction on CMS categories #PSFV-403
This commit is contained in:
@@ -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