Patch #10970 » roadmap_issues_sort.diff
app/controllers/versions_controller.rb (working copy) | ||
---|---|---|
49 | 49 |
issues = Issue.visible.all( |
50 | 50 |
:include => [:project, :status, :tracker, :priority, :fixed_version], |
51 | 51 |
:conditions => {:tracker_id => @selected_tracker_ids, :project_id => project_ids, :fixed_version_id => @versions.map(&:id)}, |
52 |
:order => "#{Project.table_name}.lft, #{Tracker.table_name}.position, #{Issue.table_name}.id" |
|
52 |
:order => "#{Project.table_name}.lft, #{Tracker.table_name}.position, #{IssueStatus.table_name}.position, #{Issue.table_name}.id"
|
|
53 | 53 |
) |
54 | 54 |
@issues_by_version = issues.group_by(&:fixed_version) |
55 | 55 |
end |
... | ... | |
66 | 66 |
format.html { |
67 | 67 |
@issues = @version.fixed_issues.visible.find(:all, |
68 | 68 |
:include => [:status, :tracker, :priority], |
69 |
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") |
|
69 |
:order => "#{Tracker.table_name}.position, #{IssueStatus.table_name}.position, #{Issue.table_name}.id")
|
|
70 | 70 |
} |
71 | 71 |
format.api |
72 | 72 |
end |