diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-09 09:34:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-09 09:34:24 +0000 |
commit | c2c526c822e29484ba404b9ce3ffe2accfc40b25 (patch) | |
tree | a23145f9cefa73bb719098619f7647f2e927210b /app/views/account | |
parent | 0c90a19eb22b81da4cd32ea6da263b220a2dfbd0 (diff) | |
download | redmine-c2c526c822e29484ba404b9ce3ffe2accfc40b25.tar.gz redmine-c2c526c822e29484ba404b9ce3ffe2accfc40b25.zip |
Introduce setting to hide optional user custom fields on registration form (#24089).
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@16537 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/account')
-rw-r--r-- | app/views/account/register.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb index 0cd0d8cff..ade00adfc 100644 --- a/app/views/account/register.html.erb +++ b/app/views/account/register.html.erb @@ -29,7 +29,7 @@ <p><%= f.text_field :identity_url %></p> <% end %> -<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %> +<% @user.custom_field_values.select {|v| (Setting.show_custom_fields_on_registration? && v.editable?) || v.required?}.each do |value| %> <p><%= custom_field_tag_with_label :user, value %></p> <% end %> </div> |