From feb8a1ce0f690a725d8b27f60a80de01ceaa9543 Mon Sep 17 00:00:00 2001 From: Rishabh Nambiar <5862206+rishabhnambiar@users.noreply.github.com> Date: Sat, 25 Aug 2018 23:02:43 +0530 Subject: [PATCH] FIX: Don't save placeholder text only if description is empty --- .../discourse/controllers/admin-plugins-explorer.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 b/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 index 9e5412b..0ea1153 100644 --- a/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 @@ -58,7 +58,7 @@ export default Ember.Controller.extend({ save() { const self = this; this.set('loading', true); - this.set('selectedItem.description', ''); + if (this.get('selectedItem.description') === '') this.set('selectedItem.description', ''); return this.get('selectedItem').save().then(function() { const query = self.get('selectedItem'); query.markNotDirty();