##// END OF EJS Templates
Don't omit version/category filters if project has no versions/categories....
Jean-Philippe Lang -
r14429:495be400a181
parent child
Show More
@@ -199,17 +199,13 class IssueQuery < Query
199 199 :type => :list_optional, :values => role_values
200 200 ) unless role_values.empty?
201 201
202 if versions.any?
203 add_available_filter "fixed_version_id",
204 :type => :list_optional,
205 :values => versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] }
206 end
202 add_available_filter "fixed_version_id",
203 :type => :list_optional,
204 :values => versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] }
207 205
208 if categories.any?
209 add_available_filter "category_id",
210 :type => :list_optional,
211 :values => categories.collect{|s| [s.name, s.id.to_s] }
212 end
206 add_available_filter "category_id",
207 :type => :list_optional,
208 :values => categories.collect{|s| [s.name, s.id.to_s] }
213 209
214 210 add_available_filter "subject", :type => :text
215 211 add_available_filter "description", :type => :text
General Comments 0
You need to be logged in to leave comments. Login now