Project

General

Profile

Actions

Defect #18936

closed

ActionView::Template::Error (undefined method `name' for nil:NilClass) rendering issue pages after upgrade to 2.6.1 stable

Added by mathew murphy over 9 years ago. Updated about 9 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

ActionView::Template::Error (undefined method `name' for nil:NilClass):
    18: <p><%= f.select :assigned_to_id, principals_options_for_select(@issue.a
ssignable_users, @issue.assigned_to), :include_blank => true, :required => @iss
ue.required_attribute?('assigned_to_id') %></p>
    19: <% end %>
    20: 
    21: <% if @issue.safe_attribute?('category_id') && @issue.project.issue_cat
egories.any? %>
    22: <p><%= f.select :category_id, (@issue.project.issue_categories.collect 
{|c| [c.name, c.id]}), :include_blank => true, :required => @issue.required_att
ribute?('category_id') %>
    23: <%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
    24:             new_project_issue_category_path(@issue.project),
  app/views/issues/_attributes.html.erb:21:in `block in _app_views_issues__attr
ibutes_html_erb___1181801666658417305_70134208662720'
  app/helpers/application_helper.rb:1063:in `labelled_fields_for'
  app/views/issues/_attributes.html.erb:1:in `_app_views_issues__attributes_htm
l_erb___1181801666658417305_70134208662720'
  app/views/issues/_form.html.erb:41:in `block in _app_views_issues__form_html_
erb__2666950825987578435_70134210527540'
  app/helpers/application_helper.rb:1063:in `labelled_fields_for'
  app/views/issues/_form.html.erb:1:in `_app_views_issues__form_html_erb__26669
50825987578435_70134210527540'
  app/views/issues/_edit.html.erb:8:in `block in _app_views_issues__edit_html_e
rb___1994174280364428611_70134209111280'
  app/helpers/application_helper.rb:1056:in `labelled_form_for'
  app/views/issues/_edit.html.erb:1:in `_app_views_issues__edit_html_erb___1994
174280364428611_70134209111280'
  app/views/issues/show.html.erb:132:in `_app_views_issues_show_html_erb___1732
996236595601485_70134208662260'
  app/controllers/issues_controller.rb:128:in `block (2 levels) in show'
  app/controllers/issues_controller.rb:125:in `show'
Environment:
  Redmine version                2.6.1.stable.13933
  Ruby version                   2.2.0-p0 (2014-12-25) [x86_64-linux]
  Rails version                  3.2.21
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Subversion                     1.8.8
  Git                            1.9.1
  Filesystem                     
Redmine plugins:
  no plugin installed

Related issues

Related to Redmine - Defect #19051: Unable to load ProjectsClosed

Actions
Related to Redmine - Defect #18945: new user page showing 500 errorClosed

Actions
Actions

Also available in: Atom PDF