repair parent category

This commit is contained in:
vedatakd 2019-10-18 17:49:26 +03:00
parent aa86d2fa80
commit 9977c01f49

View File

@ -43,7 +43,8 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
public function getCatLevel($id)
{
return count($this->getParentCats($id));
//count parent and itself
return count($this->getParentCats($id))+1;
}
public function getSubCategories($id, $get = null)