From 326613d9a18a2356f6d137f492db77603565f8c3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 29 Oct 2016 14:13:23 +0000 Subject: [PATCH] Preload user. git-svn-id: http://svn.redmine.org/redmine/trunk@15939 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/context_menus_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/context_menus_controller.rb b/app/controllers/context_menus_controller.rb index b2f807cea..e2b2f922d 100644 --- a/app/controllers/context_menus_controller.rb +++ b/app/controllers/context_menus_controller.rb @@ -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 -- 2.39.5