From 4787e73954c88c558495ea33b23c9c5033ee92e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Sat, 14 Mar 2015 02:45:33 +0100 Subject: [PATCH] FIX: toggle topic status was inverted --- app/assets/javascripts/discourse/models/topic.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/topic.js.es6 b/app/assets/javascripts/discourse/models/topic.js.es6 index 93ff2850de8..054f35a67bd 100644 --- a/app/assets/javascripts/discourse/models/topic.js.es6 +++ b/app/assets/javascripts/discourse/models/topic.js.es6 @@ -145,7 +145,7 @@ const Topic = Discourse.Model.extend({ toggleStatus(property) { this.toggleProperty(property); - this.saveStatus(property, !this.get(property)); + this.saveStatus(property, !!this.get(property)); }, saveStatus(property, value) {