mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-11 13:15:20 +00:00
Priority should always be preloaded as it's used to render issue links.
git-svn-id: http://svn.redmine.org/redmine/trunk@16346 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7d04dca697
commit
27ebd84309
@ -276,6 +276,7 @@ class IssueQuery < Query
|
||||
|
||||
scope = Issue.visible.
|
||||
joins(:status, :project).
|
||||
preload(:priority).
|
||||
where(statement).
|
||||
includes(([:status, :project] + (options[:include] || [])).uniq).
|
||||
where(options[:conditions]).
|
||||
@ -284,7 +285,7 @@ class IssueQuery < Query
|
||||
limit(options[:limit]).
|
||||
offset(options[:offset])
|
||||
|
||||
scope = scope.preload([:tracker, :priority, :author, :assigned_to, :fixed_version, :category] & columns.map(&:name))
|
||||
scope = scope.preload([:tracker, :author, :assigned_to, :fixed_version, :category] & columns.map(&:name))
|
||||
if has_custom_field_column?
|
||||
scope = scope.preload(:custom_values)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user