Project

General

Profile

Actions

Defect #20463

closed

Internal error when moving an issue to a project without selected trackers and active issue tracking

Added by Ivan Cenov about 9 years ago. Updated about 9 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Circumstances:
  • Project hierarchy:
    PR1 (with issue tracking enabled and activated several trackers)
       PR1_C1 (with issue tracking enabled and none trackers activated)
    
  • Issue, defined in PR1, assigned a tracker
Action:
  • Move the issue from PR1 to PR1_C1.

Result:
Internal error.

Started PUT "/issues/2885" for 192.168.xxx.xxx at 2015-07-30 12:40:54 +0300
Processing by IssuesController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"9bqERxUbYbjA8eewrwerwwefH6kQGImlUcm5IgKc6wkY=", "issue"=>{"is_private"=>"0", "project_id"=>"383", "subject"=>"xxxxxxxxxxxxxxxxx", "description"=>"xxxxxxxxxxxxxxxxxxx", "status_id"=>"2", "priority_id"=>"4", "assigned_to_id"=>"3", "parent_issue_id"=>"", "start_date"=>"2015-06-10", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "custom_field_values"=>{"2"=>[""], "3"=>[""], "4"=>[""]}, "checklists_attributes"=>{"0"=>{"is_done"=>"0", "subject"=>"", "_destroy"=>"false", "position"=>"1", "id"=>""}}, "notes"=>"", "private_notes"=>"0", "lock_version"=>"4"}, "time_entry"=>{"hours"=>"", "activity_id"=>"13", "comments"=>""}, "last_journal_id"=>"11173", "commit"=>"Изпращане", "id"=>"2885"}
  Current user: xxx (id=3)
  Rendered issues/edit.html.erb within layouts/base (31.2ms)
Completed 500 Internal Server Error in 109.4ms

ActionView::Template::Error (undefined method `name' for nil:NilClass):
    1: <h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
    2: 
    3: <%= render :partial => 'edit' %>
    4: <% content_for :header_tags do %>
  app/views/issues/edit.html.erb:1:in `_app_views_issues_edit_html_erb__803754913_24533328'
  app/controllers/issues_controller.rb:207:in `block (2 levels) in update'
  app/controllers/issues_controller.rb:206:in `update'
Actions #1

Updated by Toshi MARUYAMA about 9 years ago

  • Status changed from New to Confirmed

Confirmed in 2.6-stable r14532.

Actions #2

Updated by Toshi MARUYAMA about 9 years ago

  • Target version set to 3.2.0

Confirmed in trunk r14542, too.

Actions #3

Updated by Jean-Philippe Lang about 9 years ago

  • Status changed from Confirmed to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fixed in r14612, thanks for pointing this out.

Actions #4

Updated by Jean-Philippe Lang about 9 years ago

Projects without trackers are longer proposed when editing an issue (r14613).

Actions

Also available in: Atom PDF