mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Wiki editing was broken due to extra topic update
This commit is contained in:
parent
f923d7e205
commit
d7b7ec9e0a
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue