# Category setting to enable solutions doesn't stay checked

**URL:** https://meta.discourse.org/t/category-setting-to-enable-solutions-doesnt-stay-checked/33398
**Category:** Bug
**Created:** [17 Setembro , 2015 14:21 UTC](https://meta.discourse.org/t/category-setting-to-enable-solutions-doesnt-stay-checked/33398 "2015-09-17T14:21:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [17 Setembro , 2015 14:21 UTC](https://meta.discourse.org/t/category-setting-to-enable-solutions-doesnt-stay-checked/33398/1 "2015-09-17T14:21:25Z")

</div>

**Reproduce:**

1. Go to a category where people can mark solutions & click the Edit button to modify category settings.
2. Notice **“Allow topic owner and staff to mark a reply as the solution”** is not checked.
3. Check the box for that, and click Save Category.
4. Open the edit dialog again.

**Expected result:**

- The box accurately represents the state of the toggle, and stays checked.

**Actual result:**

- The box is not checked for categories with solutions enabled, and the box never stays checked after checking it and saving settings.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [17 Setembro , 2015 14:24 UTC](https://meta.discourse.org/t/category-setting-to-enable-solutions-doesnt-stay-checked/33398/2 "2015-09-17T14:24:04Z")

</div>

To make matters worse, I can’t figure out how to get solutions re-enabled for my category after trying to fix this setting. Yikes!

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [17 Setembro , 2015 16:22 UTC](https://meta.discourse.org/t/category-setting-to-enable-solutions-doesnt-stay-checked/33398/3 "2015-09-17T16:22:44Z")

</div>

Fixed this one. We were doing something weird and modifying `Category` instances after they were already created.

[https://github.com/discourse/discourse-solved/commit/de39f462791416e23df6e01f1fa4e4e1fd23cf8e](https://github.com/discourse/discourse-solved/commit/de39f462791416e23df6e01f1fa4e4e1fd23cf8e)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [17 Setembro , 2015 16:37 UTC](https://meta.discourse.org/t/category-setting-to-enable-solutions-doesnt-stay-checked/33398/4 "2015-09-17T16:37:46Z")

</div>


