From 3a549bb86090fda080e06bd41c267395f313fc86 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 22 Apr 2023 01:12:28 +0000 Subject: [PATCH] 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 --- app/controllers/trackers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5