Skip to content

Commit

Permalink
FIX: Close info was not showing up after removing an attribute
Browse files Browse the repository at this point in the history
It was removed in 4cc22a5.
  • Loading branch information
eviltrout committed Apr 1, 2015
1 parent aff23a2 commit 2fde257
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/assets/javascripts/discourse/models/composer.js.es6
Expand Up @@ -542,7 +542,6 @@ const Composer = Discourse.Model.extend({
// It's no longer a new post
createdPost.set('newPost', false);
topic.set('draft_sequence', result.draft_sequence);
topic.set('details.auto_close_at', result.topic_auto_close_at);
postStream.commitPost(createdPost);
addedToStream = true;
} else {
Expand Down
3 changes: 0 additions & 3 deletions app/assets/javascripts/discourse/models/post-stream.js.es6
Expand Up @@ -624,9 +624,6 @@ const PostStream = Ember.Object.extend({
return existing;
}

// Update the auto_close_at value of the topic
this.set("topic.details.auto_close_at", post.get("topic_auto_close_at"));

post.set('topic', this.get('topic'));
postIdentityMap.set(post.get('id'), post);

Expand Down

0 comments on commit 2fde257

Please sign in to comment.