// category treeview in "all" context shop fix
This commit is contained in:
@@ -805,8 +805,10 @@ class CategoryCore extends ObjectModel
|
|||||||
$sql .= '
|
$sql .= '
|
||||||
AND cs.`id_shop` = '.(int)$shop->id;
|
AND cs.`id_shop` = '.(int)$shop->id;
|
||||||
$sql .= '
|
$sql .= '
|
||||||
AND c.`id_parent` = '.(int)$id_parent.'
|
AND c.`id_parent` = '.(int)$id_parent;
|
||||||
ORDER BY cs.`position` ASC';
|
if (Shop::getContext() == Shop::CONTEXT_SHOP && $use_shop_context)
|
||||||
|
$sql .= '
|
||||||
|
ORDER BY cs.`position` ASC';
|
||||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
|
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user