]> source.dussan.org Git - redmine.git/commitdiff
Preload user.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 29 Oct 2016 14:13:23 +0000 (14:13 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 29 Oct 2016 14:13:23 +0000 (14:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15939 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/context_menus_controller.rb

index b2f807cea604daba12e0181592d74d51e6fe87c8..e2b2f922d1d3e8d4682369d1ca5e11c5f113840f 100644 (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