# Draft is not being saved when creating a new PM

**URL:** <https://meta.discourse.org/t/draft-is-not-being-saved-when-creating-a-new-pm/149990>\
**Category:** Bug\
**Created:** [30 april 2020 om 22:04 UTC](https://meta.discourse.org/t/draft-is-not-being-saved-when-creating-a-new-pm/149990 "2020-04-30T22:04:37Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [16 november 2020 om 11:54 UTC](https://meta.discourse.org/t/draft-is-not-being-saved-when-creating-a-new-pm/149990/12 "2020-11-16T11:54:20Z")

</div>

This should be fixed via:

[https://github.com/discourse/discourse/commit/0853208d67090d4ce2a9ebec07839bfa564c16e5](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? 🤔)
> 
> 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. 👍

---

_[View the full topic](https://meta.discourse.org/t/draft-is-not-being-saved-when-creating-a-new-pm/149990)._
