# When moving a solved topic to a category that disallows solutions, remove solved

**URL:** <https://meta.discourse.org/t/when-moving-a-solved-topic-to-a-category-that-disallows-solutions-remove-solved/58385>\
**Category:** Feature\
**Tags:** pr-welcome, solved, completed\
**Created:** [2015 年10 月 14 日 16:56 UTC](https://meta.discourse.org/t/when-moving-a-solved-topic-to-a-category-that-disallows-solutions-remove-solved/58385 "2015-10-14T16:56:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
发布日期： [2017 年3 月 31 日 01:54 UTC](https://meta.discourse.org/t/when-moving-a-solved-topic-to-a-category-that-disallows-solutions-remove-solved/58385/4 "2017-03-31T01:54:16Z")

</div>

Thanks for the PR @bekicot 👍

I was just curious but is it possible to avoid adding a `DiscourseEvent` trigger and just add a model callback which checks when the `category_id` has been changed?

---

_[View the full topic](https://meta.discourse.org/t/when-moving-a-solved-topic-to-a-category-that-disallows-solutions-remove-solved/58385)._
