Project

General

Profile

Actions

Defect #1553

closed

tracker_id isn't set on new issue creation

Added by Daniil Bratchenko about 16 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2008-06-30
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When I create new issue, no matter what tracker i chose, created issue has default (for project) tracker.

I don't know ruby, but you need to change

#app/controllers/issues_controller.rb:118
@issue.tracker ||= @project.trackers.find(params[:tracker_id] ? params[:tracker_id] : :first)

To something like that:
@issue.tracker ||= @project.trackers.find(params[:issue] ? params[:issue][:tracker_id] ? params[:issue][:tracker_id] : :first : :first)

This change has fixed bug in my working copy.

Actions #1

Updated by Jean-Philippe Lang about 16 years ago

  • Status changed from New to Closed
  • Target version deleted (0.7.2)
  • Resolution set to Fixed

This was broken by r1592. It's fixed in r1610.
Thanks for pointing out.

Actions

Also available in: Atom PDF