mirror of
https://github.com/redmine/redmine.git
synced 2026-02-05 06:10:06 +01:00
Don't omit version/category filters if project has no versions/categories.
This can be used to filter issues in subprojects that have versions or categories. git-svn-id: http://svn.redmine.org/redmine/trunk@14811 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -199,17 +199,13 @@ class IssueQuery < Query
|
||||
:type => :list_optional, :values => role_values
|
||||
) unless role_values.empty?
|
||||
|
||||
if versions.any?
|
||||
add_available_filter "fixed_version_id",
|
||||
:type => :list_optional,
|
||||
:values => versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] }
|
||||
end
|
||||
add_available_filter "fixed_version_id",
|
||||
:type => :list_optional,
|
||||
:values => versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] }
|
||||
|
||||
if categories.any?
|
||||
add_available_filter "category_id",
|
||||
:type => :list_optional,
|
||||
:values => categories.collect{|s| [s.name, s.id.to_s] }
|
||||
end
|
||||
add_available_filter "category_id",
|
||||
:type => :list_optional,
|
||||
:values => categories.collect{|s| [s.name, s.id.to_s] }
|
||||
|
||||
add_available_filter "subject", :type => :text
|
||||
add_available_filter "description", :type => :text
|
||||
|
||||
Reference in New Issue
Block a user