Project

General

Profile

Patch #26091 » 0001-Allow-to-filter-by-all-versions-on-the-global-issue-.patch

Holger Just, 2017-06-02 17:52

View differences:

app/models/query.rb
if project
versions = project.shared_versions.to_a
else
versions = Version.visible.where(:sharing => 'system').to_a
versions = Version.visible.to_a
end
Version.sort_by_status(versions).collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s, l("version_status_#{s.status}")] }
end
(1-1/2)