##// 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 :type => :list_optional, :values => role_values
199 :type => :list_optional, :values => role_values
200 ) unless role_values.empty?
200 ) unless role_values.empty?
201
201
202 if versions.any?
202 add_available_filter "fixed_version_id",
203 add_available_filter "fixed_version_id",
203 :type => :list_optional,
204 :type => :list_optional,
204 :values => versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] }
205 :values => versions.sort.collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s] }
206 end
207
205
208 if categories.any?
206 add_available_filter "category_id",
209 add_available_filter "category_id",
207 :type => :list_optional,
210 :type => :list_optional,
208 :values => categories.collect{|s| [s.name, s.id.to_s] }
211 :values => categories.collect{|s| [s.name, s.id.to_s] }
212 end
213
209
214 add_available_filter "subject", :type => :text
210 add_available_filter "subject", :type => :text
215 add_available_filter "description", :type => :text
211 add_available_filter "description", :type => :text
General Comments 0
You need to be logged in to leave comments. Login now