summaryrefslogtreecommitdiffstats
path: root/app/views/users
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-07 14:15:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-07 14:15:01 +0000
commit475530e59f65f3e8d24623383512e092b2d02521 (patch)
tree76e9b403b548ee62b3f5b05fcf9a0c7554add13d /app/views/users
parent3b01ea9fa42cec01a17664a64de6f8157d363bec (diff)
downloadredmine-475530e59f65f3e8d24623383512e092b2d02521.tar.gz
redmine-475530e59f65f3e8d24623383512e092b2d02521.zip
Adds a "visible" option on User and Project custom fields (#1738).
If set to false, the custom field won't be display on user profile/project overview. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4382 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/show.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/show.rhtml b/app/views/users/show.rhtml
index afab71110..c100e6ebd 100644
--- a/app/views/users/show.rhtml
+++ b/app/views/users/show.rhtml
@@ -9,7 +9,7 @@
<% unless @user.pref.hide_mail %>
<li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
<% end %>
- <% for custom_value in @custom_values %>
+ <% @user.visible_custom_field_values.each do |custom_value| %>
<% if !custom_value.value.blank? %>
<li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
<% end %>