From 34af6a5d54b9784b61d8e834b979c3e575ecf393 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 19 Nov 2015 13:30:33 +0530 Subject: [PATCH] FIX: group name can have dash and capital letters --- assets/javascripts/discourse/components/param-input.js.es6 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/assets/javascripts/discourse/components/param-input.js.es6 b/assets/javascripts/discourse/components/param-input.js.es6 index 2f68f77..56356df 100644 --- a/assets/javascripts/discourse/components/param-input.js.es6 +++ b/assets/javascripts/discourse/components/param-input.js.es6 @@ -106,11 +106,8 @@ export default Ember.Component.extend({ return g.id === intVal; }); } else { - if (value !== value.underscore()) { - this.set('value', value.underscore()); - } return !!groups.find(function(g) { - return g.name === value.underscore(); + return g.name === value; }); } }