1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-03 06:09:41 +00:00

Preload user.

git-svn-id: http://svn.redmine.org/redmine/trunk@15939 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-10-29 14:13:23 +00:00
parent 44130caa59
commit 326613d9a1

View File

@ -59,7 +59,7 @@ class ContextMenusController < ApplicationController
end
def time_entries
@time_entries = TimeEntry.where(:id => params[:ids]).preload(:project).to_a
@time_entries = TimeEntry.where(:id => params[:ids]).preload(:project, :user).to_a
(render_404; return) unless @time_entries.present?
if (@time_entries.size == 1)
@time_entry = @time_entries.first