Make the "Backlog type": "any" filter select any backlogs issue, not any redmine issue (remove the filter to do that)

pull/6827/head
friflaj 14 years ago
parent 2c407210f8
commit ccbb183039
  1. 5
      lib/backlogs_query_patch.rb

@ -70,7 +70,10 @@ module Backlogs
sql = []
values_for(field).each { |val|
selected_values = values_for(field)
selected_values = ['story', 'task'] if selected_values.include?('any')
selected_values.each { |val|
case val
when "story"
sql << "(#{db_table}.tracker_id in (" + Story.trackers.collect{|val| "#{val}"}.join(",") + ") and #{db_table}.parent_id is NULL)"

Loading…
Cancel
Save