# 类别未在再播模态中显示

**URL:** https://meta.discourse.org/t/categories-not-displayed-in-reseed-modal/333241
**Category:** Bug
**Created:** [2024年十月28日 17:37 UTC](https://meta.discourse.org/t/categories-not-displayed-in-reseed-modal/333241 "2024-10-28T17:37:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2024年十月28日 17:37 UTC](https://meta.discourse.org/t/categories-not-displayed-in-reseed-modal/333241/1 "2024-10-28T17:37:14Z")

</div>

我在 Admin → Site Texts 更新了我的管理员指南，注意到类别不再显示在模态框中

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/c/c/8ccc54112be275ada24cd0a02322b2b79698f246.png)

`<span>` 元素为空  
 ![image](https://global.discourse-cdn.com/meta/original/4X/e/1/4/e14528477ed36e74a96d95163f2eef8c0c983817.png)

类别包含在请求的响应负载中

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/0/6/d065a196e0cf511c893d9ff1192f5188935bd97d.png)

所以这里可能存在一个问题：

> <https://github.com/discourse/discourse/blob/311c042700f986d7af9091c84d0cb44661740bd2/app/assets/javascripts/admin/addon/components/modal/reseed.hbs#L22>

---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [2024年十一月6日 04:10 UTC](https://meta.discourse.org/t/categories-not-displayed-in-reseed-modal/333241/5 "2024-11-06T04:10:12Z")

</div>

感谢 @Moin 报告此 bug。

我已在此 PR 中修复：🎊

> <https://github.com/discourse/discourse/pull/29612>
>
> Bug introduced in this PR https://github.com/discourse/discourse/pull/23232
> 
> T…he previous modal was using \`category.name\`
> 
> https://github.com/discourse/discourse/pull/23232/files#diff-bfae353a2f3457780e5c281b6a165261cfe552dd9dd791f3859e52d60e22be7fL20
> 
> Demo
> \<img width="643" alt="Screenshot 2024-11-06 at 1 26 28 PM" src="https://github.com/user-attachments/assets/a1e56965-fea7-4951-9e28-e680fb3cc714"\>

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2024年十一月6日 09:24 UTC](https://meta.discourse.org/t/categories-not-displayed-in-reseed-modal/333241/7 "2024-11-06T09:24:13Z")

</div>

真有意思 👀  
我以为它是在 [DEV: allows to alter category name/description by jjaffeux · Pull Request #28263 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/28263) 中引入的
