Draft is not being saved when creating a new PM

This should be fixed via:

https://github.com/discourse/discourse/commit/0853208d67090d4ce2a9ebec07839bfa564c16e5

Description:

Here’s how the draft saving process works currently:

  • if only title is present (no reply) the draft is saved
  • if only reply is present (no title) the draft is saved
  • if both title and reply are present, and reply length is less than min_post_length and the title length is less than min_topic_title_length , then the draft is saved
  • if both title and reply are present, and reply length is less than min_post_length , then the draft is not saved (then why the above case was saved? :thinking:)

The current draft saving conditions are complex to understand and is causing confusion.

This commit updates the process to save the draft if either title or reply (or both) exists and at least one of them meets required length criteria.

Thanks for reporting this issue @Thomas_G, and for further researching @tshenry. :+1:

6 likes