mediacore/mediacore-community — Issue #136: Incorrect Category Media Counts
Author: ijnalepa
Created: 2012-02-22 15:13:48+00:00
State: open

When using categories with subcategories, applying a piece of media to both the parent and subcategory causes them to be counted twice for the parent category.

For example, if we have 2 videos each assigned to category1 and category2, and category2 is a child of category1, we get the following:
Category1 (4)
• Category2 (2)

If we remove category2 as a child of category1, we get the correct counts:
Category1 (2)
Category2 (2)

This is only happening in the UI. The admin panel shows the correct counts regardless of how the categories are nested.