##// END OF EJS Templates
Fixed: error on account/register when validation fails....
Jean-Philippe Lang -
r912:866e9e250371
parent child
Show More
@@ -115,10 +115,10 class AccountController < ApplicationController
115 @user.login = params[:user][:login]
115 @user.login = params[:user][:login]
116 @user.status = User::STATUS_REGISTERED
116 @user.status = User::STATUS_REGISTERED
117 @user.password, @user.password_confirmation = params[:password], params[:password_confirmation]
117 @user.password, @user.password_confirmation = params[:password], params[:password_confirmation]
118 if params["custom_fields"]
118 @custom_values = UserCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x,
119 @custom_values = UserCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @user, :value => params["custom_fields"][x.id.to_s]) }
119 :customized => @user,
120 @user.custom_values = @custom_values
120 :value => (params["custom_fields"] ? params["custom_fields"][x.id.to_s] : nil)) }
121 end
121 @user.custom_values = @custom_values
122 case Setting.self_registration
122 case Setting.self_registration
123 when '1'
123 when '1'
124 # Email activation
124 # Email activation
General Comments 0
You need to be logged in to leave comments. Login now