From a225c0fbbbd531727f6f62d0b2158a31dd4c32a6 Mon Sep 17 00:00:00 2001 From: joao Date: Sun, 6 Mar 2016 21:06:40 +0000 Subject: [PATCH] Force users to select an option in required custom user dropdown fields --- .../javascripts/discourse/components/user-field.js.es6 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/components/user-field.js.es6 b/app/assets/javascripts/discourse/components/user-field.js.es6 index 86caf3b5d66..b4e94e9a802 100644 --- a/app/assets/javascripts/discourse/components/user-field.js.es6 +++ b/app/assets/javascripts/discourse/components/user-field.js.es6 @@ -5,8 +5,6 @@ export default Ember.Component.extend({ layoutName: fmt('field.field_type', 'components/user-fields/%@'), noneLabel: function() { - if (!this.get('field.required')) { - return 'user_fields.none'; - } - }.property('field.required') + return 'user_fields.none'; + }.property() });