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