In main category page, subcategories with same name show same new topic count


(Brad Huber) #1

I think this is a similar issue to this recent bug, where sub-category data is being found by name, rather than id.

Here’s an imgur gallery with examples from our /categories page. If you notice, any sub-category that has the exact same name as another has the same new topic count. Going into a sub-category and reading a topic doesnt change the count, so I’m assuming it’s grabbing the count from one sub-category, and then applying it to every subcategory with the same name.


(Jeff Atwood) #2

Probably. Something else to add to your list @eviltrout.


(Robin Ward) #3

Thanks for letting us know. I have a fix here in master:

https://github.com/discourse/discourse/commit/98907c0e81c92bf532fdaa969d9b3dc3c75eab66


(Jeff Atwood) #4