Steps to reproduce the issue
- Create Tags items for example t1 and t2
- Create root Category c1 and several subcategories for example c11, c22
- Create several Articles in each Category (for example a1 in c11, a2 in c22) and assign them one Tags item (for example t1 for a1, t2 for a2)
- Create a Menu item with Menu Item Type = Category Blog, Choose a Category = root Category (c1) and Tags = t1. Category group parameter # Articles in Category = Show, Empty Categories = Hide
- Open this Menu in front
Expected result
- only subcategories are displayed in which the Articles with Tag t1
- empty subcategories are not displayed that do not contain Articles with Tag t1
- correct count of Articles is displayed in the category (only with Tag t1)
Actual result
- all subcategories are displayed, even if there are no Articles with Tag t1 (empty subcategories in this case)
- incorrect count of Articles is displayed in the category (all Articles, even if there are Articles without Tag t1)
duplicate of #38765