mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-20 10:32:01 +00: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:
parent
467a69f2b8
commit
495be400a1
@ -199,17 +199,13 @@ class IssueQuery < Query
|
|||||||
:type => :list_optional, :values => role_values
|
:type => :list_optional, :values => role_values
|
||||||
) unless role_values.empty?
|
) unless role_values.empty?
|
||||||
|
|
||||||
if versions.any?
|
add_available_filter "fixed_version_id",
|
||||||
add_available_filter "fixed_version_id",
|
:type => :list_optional,
|
||||||
:type => :list_optional,
|
:values => versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] }
|
||||||
:values => versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] }
|
|
||||||
end
|
|
||||||
|
|
||||||
if categories.any?
|
add_available_filter "category_id",
|
||||||
add_available_filter "category_id",
|
:type => :list_optional,
|
||||||
:type => :list_optional,
|
:values => categories.collect{|s| [s.name, s.id.to_s] }
|
||||||
:values => categories.collect{|s| [s.name, s.id.to_s] }
|
|
||||||
end
|
|
||||||
|
|
||||||
add_available_filter "subject", :type => :text
|
add_available_filter "subject", :type => :text
|
||||||
add_available_filter "description", :type => :text
|
add_available_filter "description", :type => :text
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user