mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 06:55:03 -05:00
FIX: Wiki editing was broken due to extra topic update
This commit is contained in:
@@ -472,7 +472,10 @@ Discourse.Composer = Discourse.Model.extend({
|
||||
|
||||
// Update the title if we've changed it, otherwise consider it a
|
||||
// successful resolved promise
|
||||
if (this.get('title') && post.get('post_number') === 1) {
|
||||
if (this.get('title') &&
|
||||
post.get('post_number') === 1 &&
|
||||
this.get('topic.details.can_edit')) {
|
||||
|
||||
var topicProps = this.getProperties(Object.keys(_edit_topic_serializer));
|
||||
promise = Discourse.Topic.update(this.get('topic'), topicProps);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user