Commit 1dbef1c9 authored by jplang's avatar jplang

Preload associations used to display issues on My page.

git-svn-id: https://svn.redmine.org/redmine/trunk@16395 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6bef1c39
......@@ -93,13 +93,17 @@ module MyHelper
Issue.visible.open.
where(:author_id => User.current.id).
limit(10).
includes(:status, :project, :tracker).
includes(:status, :project, :tracker, :priority).
references(:status, :project, :tracker).
order("#{Issue.table_name}.updated_on DESC")
end
def issueswatched_items
Issue.visible.open.on_active_project.watched_by(User.current.id).recently_updated.limit(10)
Issue.visible.open.
on_active_project.watched_by(User.current.id).
preload(:status, :project, :tracker, :priority).
recently_updated.
limit(10)
end
def news_items
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment