# When in a category, default to "none" rather than "all" subcategories

**URL:** <https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173>\
**Category:** Support\
**Created:** [10.Март.2015 16:40:49 UTC](https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173 "2015-03-10T16:40:49Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![artur-shaik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/artur-shaik/32/99836_2.png) [@artur-shaik](https://meta.discourse.org/u/artur-shaik)\
**Post date:** [24.Февраль.2019 15:10:13 UTC](https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173/10 "2019-02-24T15:10:13Z")

</div>

I just had to modify some code.

> <https://github.com/discourse/discourse/blob/2d031a1beb206416f39601df224d192cf0907736/lib/topic_query.rb#L631>

Just make this line execute uncoditionally.

---

_[View the full topic](https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173)._
