The discussion addresses a bug where moving a solved topic to a category that disallows solutions failed to remove the “solved” status. codinghorror initially reported the issue, noting that topics moved out of categories with solutions retained their solved markers. sam agreed to the cleanup, and bekicot submitted a PR adding a plugin hook to handle category changes. tgxworld suggested using a model callback instead of a new event trigger. fhe and nildarar confirmed the issue persisted, explaining that admins could not uncheck the solution after moving the topic to an incompatible category. lindsey initially claimed a fix was in place, but Moin clarified that the previous fix only addressed moving individual posts, not entire topics. lindsey acknowledged the misunderstanding and lindsey committed to fixing the topic-level issue. Finally, lindsey confirmed the behavior was updated: when a solved topic is moved to a category without solution support, the accepted solution is automatically removed, and admins receive a notification before the move is completed.
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?
Cuando una de las respuestas se marca incorrectamente como la respuesta correcta, el administrador ve que la categoría es errónea y mueve el tema a otra categoría. La respuesta marcada sigue mostrándose como la respuesta correcta, incluso si esta función no está habilitada en la nueva categoría.
En estos casos, el administrador no puede cancelar la respuesta marcada. Debería cambiar la categoría a una donde esta función esté habilitada, cancelar la respuesta correcta y luego cambiar la categoría nuevamente.
Sería un poco más fácil si los administradores pudieran cancelar la respuesta correcta en todas las categorías (incluso en aquellas con esta función desactivada).
No parece solucionar el problema descrito en el primer mensaje, que habla de mover todo un tema a otra categoría donde no están habilitadas las soluciones, no de mover algunos mensajes a otro tema. Cuando muevo `personal_messages:username` search filter doesn't work, que es un tema resuelto, a Contribute > Feature donde no se permiten soluciones, la solución no se elimina y no aparece ningún aviso.
[quote=“fhe, post:5, topic:58385”]Un tema marcado como solución que se mueve fuera de una categoría con soluciones permanece marcado como solución (y no se puede desmarcar como tal)
[/quote]
Pero puedo ver que hay más en el problema, así que podemos mantenerlo abierto.
Hemos actualizado este comportamiento para que cuando un tema resuelto se mueva a una categoría que no admite soluciones, la solución aceptada se eliminará del tema. Notificaremos a los administradores de esto antes de que completen la migración: