# 当更改计划在同一类别中发布的帖子的类别时发出警告

**URL:** <https://meta.discourse.org/t/warn-when-changing-a-topics-category-when-its-scheduled-to-be-published-in-the-same-category/179590>\
**Category:** Feature\
**Created:** [2021 年2 月 13 日 18:07 UTC](https://meta.discourse.org/t/warn-when-changing-a-topics-category-when-its-scheduled-to-be-published-in-the-same-category/179590 "2021-02-13T18:07:02Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

作者： ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
发布日期： [2021 年2 月 18 日 22:35 UTC](https://meta.discourse.org/t/warn-when-changing-a-topics-category-when-its-scheduled-to-be-published-in-the-same-category/179590/5 "2021-02-18T22:35:24Z")

</div>

看起来 @dan 已经为共享草稿的情况修复了这个问题：

> <https://github.com/discourse/discourse/commit/c3bab3ef3816ba17e1a9a9c64582fc2e2336a8f1>
>
> It used to change the category of the topic, instead of the destination
> categor…y (topic.category\_id instead of topic.shared\_draft.category\_id).
> 
> The shared drafts controls were displayed only if the current category
> matched the 'shared drafts category', which was not true for shared
> drafts that had their categories changed (affected by the previous bug).

我可能应该在这里复制那个模型——将分类编辑保存到计划操作中。

---

_[View the full topic](https://meta.discourse.org/t/warn-when-changing-a-topics-category-when-its-scheduled-to-be-published-in-the-same-category/179590)._
