From 689afbfb7ac50beda1ff1dbe88a9bcbd179c85ae Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 4 Jul 2014 13:11:43 -0400 Subject: [PATCH] FIX: Try to match a selected element in a combo box, even if it has a value of 0. --- app/assets/javascripts/discourse/views/combo-box.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/combo-box.js.es6 b/app/assets/javascripts/discourse/views/combo-box.js.es6 index 41a9f3deb61..fb37f5d4659 100644 --- a/app/assets/javascripts/discourse/views/combo-box.js.es6 +++ b/app/assets/javascripts/discourse/views/combo-box.js.es6 @@ -33,7 +33,7 @@ export default Discourse.View.extend({ } var selected = this.get('value'); - if (selected) { selected = selected.toString(); } + if (!Em.isNone(selected)) { selected = selected.toString(); } if (this.get('content')) { var self = this;