You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In function CategoryRepository#findChildCategoriesNamesAndIds, to find nested categories the SQL query include that condition : AND c.id_parent > '.(int)$category->id.'
Which is wrong, because a subcategory dosn't significate the category ID is greater.
I strongly suggest you use the native function : Category::getNestedCategories
This will returns the right ones.
The text was updated successfully, but these errors were encountered:
Hello @icedocemile, thank you for feedback. As we are not working on Brad project so frequently, please don't hesitate to make a pull request with a fix proposal - it would be greatly appreciated! Have a nice day.
Hi,
In function CategoryRepository#findChildCategoriesNamesAndIds, to find nested categories the SQL query include that condition :
AND c.
id_parent> '.(int)$category->id.'
Which is wrong, because a subcategory dosn't significate the category ID is greater.
I strongly suggest you use the native function :
Category::getNestedCategories
This will returns the right ones.
The text was updated successfully, but these errors were encountered: