From 9b84a64a378878d222aaeb37468ae4a1c7143c1b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 6 Jun 2016 21:08:11 +0200 Subject: [PATCH] Removed workaround with invalid role_ids. Improved code layout. --- app/assets/javascripts/app/controllers/signup.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/signup.coffee b/app/assets/javascripts/app/controllers/signup.coffee index e5a5a956c..bd7e992d5 100644 --- a/app/assets/javascripts/app/controllers/signup.coffee +++ b/app/assets/javascripts/app/controllers/signup.coffee @@ -44,7 +44,7 @@ class Index extends App.ControllerContent @params.login = @params.email @params.signup = true - @params.role_ids = [0] + @params.role_ids = [] @log 'notice', 'updateAttributes', @params user = new App.User user.load(@params) @@ -54,7 +54,7 @@ class Index extends App.ControllerContent ) if errors @log 'error new', errors - @formValidate( form: e.target, errors: errors ) + @formValidate(form: e.target, errors: errors) @formEnable(e) return false