@@ -115,10 +115,10 class AccountController < ApplicationController | |||
|
115 | 115 | @user.login = params[:user][:login] |
|
116 | 116 | @user.status = User::STATUS_REGISTERED |
|
117 | 117 | @user.password, @user.password_confirmation = params[:password], params[:password_confirmation] |
|
118 | if params["custom_fields"] | |
|
119 | @custom_values = UserCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @user, :value => params["custom_fields"][x.id.to_s]) } | |
|
120 | @user.custom_values = @custom_values | |
|
121 | end | |
|
118 | @custom_values = UserCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, | |
|
119 | :customized => @user, | |
|
120 | :value => (params["custom_fields"] ? params["custom_fields"][x.id.to_s] : nil)) } | |
|
121 | @user.custom_values = @custom_values | |
|
122 | 122 | case Setting.self_registration |
|
123 | 123 | when '1' |
|
124 | 124 | # Email activation |
General Comments 0
You need to be logged in to leave comments.
Login now