Queries issues

pull/280/head
Hagen Schink 11 years ago
parent f36ab96287
commit 60c481d631
  1. 6
      app/models/query.rb

@ -496,9 +496,9 @@ class Query < ActiveRecord::Base
order_option = [group_by_sort_order, options[:order]].reject {|s| s.blank?}.join(',')
order_option = nil if order_option.blank?
WorkPackage.where(::Query.merge_conditions(statement, options[:conditions]))
.includes([:status, :project] + (options[:include] || []).uniq)
.order(order_option)
Issue.where(::Query.merge_conditions(statement, options[:conditions]))
.includes([:status, :project] + (options[:include] || []).uniq)
.order(order_option)
end
# Returns the journals

Loading…
Cancel
Save