fix hasChildCategories for admin view