Patch #35396 » issues_with_base_scope.patch
| app/models/issue_query.rb | ||
|---|---|---|
|
order_option << "#{Issue.table_name}.id DESC"
|
||
|
end
|
||
|
scope = Issue.visible.
|
||
|
joins(:status, :project).
|
||
|
scope = base_scope.
|
||
|
preload(:priority).
|
||
|
where(statement).
|
||
|
includes(([:status, :project] + (options[:include] || [])).uniq).
|
||
|
where(options[:conditions]).
|
||
|
order(order_option).
|
||