Skip to content

A platform for community discussion. Free, open, simple.

FIX: Opening new topic draft never creates post (#8828)

Mark VanLandingham49c750ca7890
diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6
index 991e580af28..0d8f533f1e2 100644
--- a/app/assets/javascripts/discourse/models/composer.js.es6
+++ b/app/assets/javascripts/discourse/models/composer.js.es6
@@ -912,6 +912,10 @@ const Composer = RestModel.extend({
},
createPost(opts) {
+ if (this.action === CREATE_TOPIC) {
+ this.set("topic", null);
+ }
+
const post = this.post;
const topic = this.topic;
const user = this.user;