1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 10:21:14 +00:00

Allow to filter by all versions on the global issue list (#26091).

Patch by Holger Just.


git-svn-id: http://svn.redmine.org/redmine/trunk@17421 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2018-06-28 00:49:30 +00:00
parent f7bb9f93a4
commit 06d3e897c4

View File

@ -549,7 +549,7 @@ class Query < ActiveRecord::Base
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