diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-29 14:13:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-29 14:13:23 +0000 |
commit | 326613d9a18a2356f6d137f492db77603565f8c3 (patch) | |
tree | 2e72bd7429849e17dbd73467c7a6416a85f62912 /app/controllers | |
parent | 44130caa599cc0afa487472fc6dd6ba6c5ab95b2 (diff) | |
download | redmine-326613d9a18a2356f6d137f492db77603565f8c3.tar.gz redmine-326613d9a18a2356f6d137f492db77603565f8c3.zip |
Preload user.
git-svn-id: http://svn.redmine.org/redmine/trunk@15939 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/context_menus_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |