GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 53b82dd3 authored by jplang's avatar jplang

Preload user.

git-svn-id: https://svn.redmine.org/redmine/trunk@15939 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7113f4d7
......@@ -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
......
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