# “Topic List Sort By”为“false”的 bug

**URL:** https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131
**Category:** Bug
**Created:** [2020年六月7日 23:45 UTC](https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131 "2020-06-07T23:45:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Flashio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flashio/32/148951_2.png) [@Flashio](https://meta.discourse.org/u/Flashio)
#### Post date: [2020年六月7日 23:45 UTC](https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131/1 "2020-06-07T23:45:12Z")

</div>

你好，亲爱的管理员们。我注意到这个 bug 已经有一段时间了（大概在几个“beta 版本”之前），不过问题不算严重。具体情况是：我将分类或子分类按“创建时间”降序排列，但点击“保存分类”按钮后，“降序”选项却显示为“false”。

此外，从 2.5.0.beta4 升级到 2.5.0.beta6 后，所有排序偏好都被恢复为默认值，我不得不重新将它们设置为“创建时间”降序。

# 点击“保存分类”按钮之前

 ![Screen Shot 2020-06-08 at 02.43.37](https://global.discourse-cdn.com/meta/original/3X/9/e/9e0281685263238e4848a6720d870ce4968aadb5.png)

# 点击“保存分类”按钮之后

 ![Screen Shot 2020-06-08 at 02.40.19](https://global.discourse-cdn.com/meta/original/3X/f/e/fee8f4e4d2a3824123d08fed95381c95bf95222a.png)

**另外，还有一个小更新。** 分类和子分类的排序会在短时间内自动重置为默认值。我尚不清楚具体是什么触发了这一行为，但我在几个小时前将其更改为“创建时间”降序，现在又恢复成了默认排序。

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年六月8日 00:20 UTC](https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131/2 "2020-06-08T00:20:21Z")

</div>

我相信 @vinothkannans 最近已经修复了这个问题？请尝试更新到最新版本。

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [2020年六月8日 01:56 UTC](https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131/3 "2020-06-08T01:56:47Z")

</div>

关于这个问题，我已经开了另一个帖子

> [@Topic List Sort By stuck on false](https://meta.discourse.org/t/topic-list-sort-by-stuck-on-false/154042):
>
> The category setting topic\_list\_sort\_by is stuck on false on my site for any of the options. If I change it to descending, save the category, it works and sorts correctly until the page is refreshed and it goes back to the default, when you go back into the category settings it has reverted back to false any idea what is going on here?

---

<div class="post-metadata">

### Author: ![Flashio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flashio/32/148951_2.png) [@Flashio](https://meta.discourse.org/u/Flashio)
#### Post date: [2020年六月8日 02:14 UTC](https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131/4 "2020-06-08T02:14:59Z")

</div>

我使用的是最新的 2.5.0.beta6 版本（[293467a37a](https://github.com/discourse/discourse/commits/293467a37ae33c5fd8fd40bbfc05bffa578b90ed)）。另外，关于这一点有一个小更新：分类和子分类的排序会在短时间内自动重置为默认值。我不确定具体是什么触发了这种情况，但我在几小时前将其更改为“创建时间”=“降序”，现在它又恢复为默认排序了。

---

<div class="post-metadata">

### Author: ![Flashio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flashio/32/148951_2.png) [@Flashio](https://meta.discourse.org/u/Flashio)
#### Post date: [2020年六月8日 02:16 UTC](https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131/5 "2020-06-08T02:16:25Z")

</div>

很抱歉，亲爱的朋友。我没看到那里的帖子，但这应该是个 bug。不过我注意到你遇到了和我一样的问题。 **可以确认，这个问题和本主题中的情况一样** ：

> [@Topic List Sort By stuck on false](https://meta.discourse.org/t/topic-list-sort-by-stuck-on-false/154042?u=flashio):
>
> The category setting topic\_list\_sort\_by is stuck on false on my site for any of the options. If I change it to descending, save the category, it works and sorts correctly until the page is refreshed and it goes back to the default, when you go back into the category settings it has reverted back to false any idea what is going on here?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2020年六月9日 20:15 UTC](https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131/6 "2020-06-09T20:15:53Z")

</div>

> [@davidkingham](#):
>
> 不管怎样，现在它已经可以工作了，非常感谢！

这个问题在另一个话题中已经修复了。

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年六月10日 00:54 UTC](https://meta.discourse.org/t/topic-list-sort-by-is-false-bug/154131/7 "2020-06-10T00:54:39Z")

</div>


