# Disabling report descriptions causes other descriptions to be hidden

**URL:** https://meta.discourse.org/t/topic/405254
**Category:** Bug
**Tags:** fixed, bug
**Created:** [June 13, 2026, 12:09pm UTC](https://meta.discourse.org/t/topic/405254 "2026-06-13T12:09:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![AkarinLiu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akarinliu/32/539577_2.png) [@AkarinLiu](https://meta.discourse.org/u/AkarinLiu)
#### Post date: [June 13, 2026, 12:09pm UTC](https://meta.discourse.org/t/topic/405254/1 "2026-06-13T12:09:18Z")

</div>

While managing report descriptions, I found a bug: disabling any description (except “Send message to @%{username}”) causes other report descriptions I created to be hidden.

Before disabling:

 ![Image](https://global.discourse-cdn.com/meta/original/4X/b/2/5/b258e8e15bfe922369a4c69a5cab82c91ffb404f.png)  
After disabling:  
 ![Image](https://global.discourse-cdn.com/meta/original/4X/b/b/a/bbafe6a99c9965e3ee3235101e3e9238f7cd5692.png)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [June 15, 2026, 3:17pm UTC](https://meta.discourse.org/t/topic/405254/2 "2026-06-15T15:17:50Z")

</div>

Sorry about that, issue should be fixed by

> <https://github.com/discourse/discourse/pull/40899>
>
> Previously, flag names with no ASCII word characters (e.g. Chinese) all normaliz…ed to the same \`name\_key\` of \`custom\_\`, because \`set\_name\_key\` stripped non-\`\\w\` characters and Ruby's \`\\w\` is ASCII-only. The flag system keys lookups by \`name\_key\` (the \`disabled\_flag\_types\` enum, the frontend \`actionByName\` map), so once two flags shared a key, disabling one of them flipped \`can\_act\` for the whole group and hid every other flag that shared it.
> 
> This makes \`name\_key\` reliably unique:
> 
> \- \`set\_name\_key\` falls back to \`custom\_flag\` when the slug is empty and appends a counter (\`\_2\`, \`\_3\`, ...) on collision, so distinct names always produce distinct keys. It now only re-derives the key when the name actually changes, keeping it stable across other saves.
> \- A post-deploy migration backfills existing duplicate keys and adds the unique index on \`flags.name\_key\` that the original \`create\_flags\` migration intended (\`unique: true\` is a no-op in \`create\_table\`).
> 
> https://meta.discourse.org/t/405254

---

<div class="post-metadata">

### Author: ![AkarinLiu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akarinliu/32/539577_2.png) [@AkarinLiu](https://meta.discourse.org/u/AkarinLiu)
#### Post date: [June 17, 2026, 8:14am UTC](https://meta.discourse.org/t/topic/405254/5 "2026-06-17T08:14:59Z")

</div>

It seems like the bug hasn’t been fixed yet. After I updated, the bug was still there.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [June 17, 2026, 10:14am UTC](https://meta.discourse.org/t/topic/405254/6 "2026-06-17T10:14:03Z")

</div>

That’s because the PR hasn’t been merged yet 😉

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [June 24, 2026, 2:38pm UTC](https://meta.discourse.org/t/topic/405254/7 "2026-06-24T14:38:25Z")

</div>

Heads up @AkarinLiu - the PR has now been merged 😉

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 26, 2026, 3:04pm UTC](https://meta.discourse.org/t/topic/405254/8 "2026-06-26T15:04:11Z")

</div>


