From 274f1ba90717466bdca2732e935a6cd2e28c22c1 Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Mon, 9 Jun 2014 08:37:16 -0600 Subject: [PATCH] Fix Editor Save Button not allowing unpublish Closes #2918 --- core/client/mixins/editor-base-controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/client/mixins/editor-base-controller.js b/core/client/mixins/editor-base-controller.js index 6add1ac137..f06722dc79 100644 --- a/core/client/mixins/editor-base-controller.js +++ b/core/client/mixins/editor-base-controller.js @@ -9,9 +9,9 @@ var EditorControllerMixin = Ember.Mixin.create({ * Only with a user-set value (via setSaveType action) * can the post's status change. */ - willPublish: function (key, val) { - if (val) { - return val; + willPublish: function (key, value) { + if (arguments.length > 1) { + return value; } return this.get('isPublished'); }.property('isPublished'),