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