Project

General

Profile

Actions

Defect #7389

closed

Error 500 when showing user page with user custom fields

Added by Siegfried Vogel over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
2011-01-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

When I click on an URL like <redmine>/users/xx
an error 500 is produced in Redmine V.1.1.0.
Must have to do with user custom fields, as the log shows:

ActionView::TemplateError (undefined method `each' for nil:NilClass) on line #12 of app/views/users/show.rhtml:
9:     <% unless @user.pref.hide_mail %>
10:         <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
11:     <% end %>
12:     <% for custom_value in @custom_values %>
13:     <% if !custom_value.value.blank? %>
14:     <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
15:     <% end %>
Actions

Also available in: Atom PDF