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?
When one of the replies is marked incorrectly as the correct answer, then the admin sees that the category is wrong and moves the topic to another category. The marked replay is still displayed as the correct answer, even if this feature is not enabled in the new category.
In these cases, the admin can not cancel the marked replay. It should change the category to where this feature is enabled. Cancel the correct answer and change the category again.
It would be a little easier if managers could cancel the correct answer in all categories (even those with this feature turned off).
Não parece corrigir o problema descrito no OP, que fala sobre um tópico inteiro ser movido para outra categoria onde as soluções não estão ativadas, e não sobre mover algumas postagens para outro tópico. Quando eu movo `personal_messages:username` search filter doesn't work, que é um tópico resolvido, para Feature onde soluções não são permitidas, a solução não é removida e não há aviso.
Desculpe, agora eu entendi o que você está dizendo. Eu estava lendo isso errado, como uma postagem marcada como solução que é movida para fora de uma categoria.
Vou colocar esta na fila para consertar, pois acho que deve ser uma pequena melhoria no trabalho que fizemos com a postagem resolvida.
Atualizamos esse comportamento para que, quando um tópico resolvido for movido para uma categoria que não suporte soluções, a solução aceita será removida do tópico. Notificaremos os administradores sobre isso antes que eles concluam a movimentação: