diff --git a/app/assets/javascripts/discourse/models/topic.js b/app/assets/javascripts/discourse/models/topic.js index 339930c0413..c34bfaee2a0 100644 --- a/app/assets/javascripts/discourse/models/topic.js +++ b/app/assets/javascripts/discourse/models/topic.js @@ -146,6 +146,9 @@ Discourse.Topic = Discourse.Model.extend({ toggleStatus: function(property) { this.toggleProperty(property); + if (property === 'closed' && this.get('closed')) { + this.set('details.auto_close_at', null); + } return Discourse.ajax(this.get('url') + "/status", { type: 'PUT', data: {status: property, enabled: this.get(property) ? 'true' : 'false' }