Patch #26091 » 0001-Allow-to-filter-by-all-versions-on-the-global-issue-.patch
| app/models/query.rb | ||
|---|---|---|
| 546 | 546 |
if project |
| 547 | 547 |
versions = project.shared_versions.to_a |
| 548 | 548 |
else |
| 549 |
versions = Version.visible.where(:sharing => 'system').to_a
|
|
| 549 |
versions = Version.visible.to_a |
|
| 550 | 550 |
end |
| 551 | 551 |
Version.sort_by_status(versions).collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s, l("version_status_#{s.status}")] }
|
| 552 | 552 |
end |