# Editing category settings causes category to be muted for the current user

**URL:** https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972
**Category:** Bug
**Created:** [9월 13, 2017, 3:01오후 UTC](https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972 "2017-09-13T15:01:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [9월 13, 2017, 3:01오후 UTC](https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972/1 "2017-09-13T15:01:47Z")

</div>

I think this is quite a serious bug:

1. Go to a category
2. Look at the buttons in the top right, notice I have “normal” notification level  
 ![06](https://global.discourse-cdn.com/meta/original/3X/e/d/ed18af6460585c70f666541e36524c31f6fbbb8c.png)
3. Click edit
4. Don’t change any settings
5. Click “save”
6. Page refreshes, observe notification level has changed to “Muted”  
 ![55](https://global.discourse-cdn.com/meta/original/3X/0/0/002a41e0b37a0f9ac215b3041444af3aabc2381e.png)

I am running the absolute latest tests-passed (updated 10 mins ago), and can replicate this on every category on my forum.

Looking at my dev tools, it looks like a POST is being sent to the notifications endpoint immediately after clicking save on the category settings.:

 ![47](https://global.discourse-cdn.com/meta/original/3X/0/9/09384dd4fc1686c83353f3d39166a9f42a6728c3.png)  
(ignore poll/results items, they’re messagebus/mini-profiler respectively)

I’ve noticed a few support requests on meta that are probably caused by this. For example, [this topic](https://meta.discourse.org/t/posts-from-a-particular-category-missing-from-homepage-just-for-the-admin-user/69734).

I am also seeing some random topics change to a muted state, but can’t reproduce this consistently. The root cause might be the same.

The extra POST request makes me think this is a client-side issue rather than server-side. @j.jaffeux could this be related to the select-box changes for notification levels?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [9월 13, 2017, 3:03오후 UTC](https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972/2 "2017-09-13T15:03:35Z")

</div>

Well this would be very unlikely caused by the component… but nothing astonishes me in programming. Let me try to remove the component from the page to see if I can still reproduce.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [9월 13, 2017, 3:08오후 UTC](https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972/3 "2017-09-13T15:08:29Z")

</div>

Probably related to the component, no idea why atm, I will investigate and push a fix, thx.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [9월 13, 2017, 4:03오후 UTC](https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972/4 "2017-09-13T16:03:05Z")

</div>

I have the fix for categories, I’m looking at topics, and I have some chicken and egg problem, but will find a solution.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [9월 13, 2017, 4:45오후 UTC](https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972/5 "2017-09-13T16:45:15Z")

</div>

Should be fixed by:

[https://github.com/discourse/discourse/commit/7a4ddc2bb1bc2e353c67ce3846229b551d0603de](https://github.com/discourse/discourse/commit/7a4ddc2bb1bc2e353c67ce3846229b551d0603de)

Will track it once deployed.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9월 13, 2017, 4:49오후 UTC](https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972/6 "2017-09-13T16:49:58Z")

</div>

Wow this is a very bad regression. You’ll need to track this closely and monitor customer support for sites affected ☹

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [5월 18, 2018, 2:28오전 UTC](https://meta.discourse.org/t/editing-category-settings-causes-category-to-be-muted-for-the-current-user/69972/7 "2018-05-18T02:28:07Z")

</div>


