diff options
author | Go MAEDA <maeda@farend.jp> | 2023-04-22 01:12:28 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-04-22 01:12:28 +0000 |
commit | 3a549bb86090fda080e06bd41c267395f313fc86 (patch) | |
tree | cd84940db570c6722108f199f241981c4ac3b478 /app/controllers | |
parent | b1510836b066ecb6dd6da9d9553ba4643bb6661b (diff) | |
download | redmine-3a549bb86090fda080e06bd41c267395f313fc86.tar.gz redmine-3a549bb86090fda080e06bd41c267395f313fc86.zip |
Preload default_status when listing trackers (#38474).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22208 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/trackers_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb index 64367f373..05ef336ef 100644 --- a/app/controllers/trackers_controller.rb +++ b/app/controllers/trackers_controller.rb @@ -26,7 +26,7 @@ class TrackersController < ApplicationController accept_api_auth :index def index - @trackers = Tracker.sorted.to_a + @trackers = Tracker.sorted.preload(:default_status).to_a respond_to do |format| format.html {render :layout => false if request.xhr?} format.api |