:conditions=>["((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?)) and #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')})",@date_from,@date_to,@date_from,@date_to]
:conditions=>["((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?)) and #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')})",@date_from,@date_to,@date_from,@date_to]
)unless@selected_tracker_ids.empty?
)unless@selected_tracker_ids.empty?
end
end
@ -597,7 +597,7 @@ class ProjectsController < ApplicationController
:conditions=>["(((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?) or (start_date<? and due_date>?)) and start_date is not null and due_date is not null and #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')}))",@date_from,@date_to,@date_from,@date_to,@date_from,@date_to]
:conditions=>["(((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?) or (start_date<? and due_date>?)) and start_date is not null and due_date is not null and #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')}))",@date_from,@date_to,@date_from,@date_to,@date_from,@date_to]