mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
repair parent category
This commit is contained in:
parent
aa86d2fa80
commit
9977c01f49
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user