Project

General

Profile

Actions

Defect #7305

closed

undefined method `visible_custom_field_values' in users/show.rhtml

Added by Artem La almost 14 years ago. Updated over 5 years ago.

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

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

After updating redmine to 1.1.0.
Trying to view http://localhost/users/8 gives:

Processing UsersController#show (for 127.0.0.1 at 2011-01-12 01:02:11) [GET]
Parameters: {"action"=>"show", "id"=>"11", "controller"=>"users"}
Rendering template within layouts/base
Rendering users/show

ActionView::TemplateError (undefined method `visible_custom_field_values' for #<User:0xb692d914>) 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: < @user.visible_custom_field_values.each do |custom_value| >
13: < if !custom_value.value.blank? >
14: <li><=h custom_value.custom_field.name%>: <%=h show_value(custom_value) ></li>
15: < end %>

app/views/users/show.rhtml:12:in `_run_rhtml_app47views47users47show46rhtml'
    app/controllers/users_controller.rb:79:in `show'
    app/controllers/users_controller.rb:78:in `show'
    /var/www/redmine/public/dispatch.fcgi:24

Rendering /var/www/redmine-1.1.0/public/500.html (500 Internal Server Error)

Rails 2.3.5
Ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
MySQL 5.0.67-0ubuntu6.1

Tried patch from #7297, but no luck


Related issues

Is duplicate of Redmine - Defect #7297: Undefined method `visible_custom_field_values' in projects/show.rhtmlClosed2011-01-11

Actions
Actions

Also available in: Atom PDF