"You must select category" notice when editing PM OP

I came across a strange corner-case bug:

  1. Edit first post in a PM
  2. Delete all text in that post.
  3. Profit??

image

Now what you deleted all texts, you cannot add any because of the “You must select a category” notice which you obviously cannot fulfill in a PM. :man_shrugging:

2 Likes

Was able to repro. Will work on it.

4 Likes

Opened a PR :slight_smile:

https://github.com/discourse/discourse/pull/7276

5 Likes

PR was merged a few weeks ago. Thanks @venarius!

4 Likes