From 86773b7dd22b55e8a14a11cb6ca22b62f938ade3 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 17 Apr 2025 01:22:05 +0000 Subject: [PATCH] Merged r23660 from trunk to 6.0-stable (#42574). git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23661 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/auto_completes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/auto_completes_controller.rb b/app/controllers/auto_completes_controller.rb index 2982447e9..77105c8e8 100644 --- a/app/controllers/auto_completes_controller.rb +++ b/app/controllers/auto_completes_controller.rb @@ -26,7 +26,7 @@ class AutoCompletesController < ApplicationController status = params[:status].to_s issue_id = params[:issue_id].to_s - scope = Issue.cross_project_scope(@project, params[:scope]).visible + scope = Issue.cross_project_scope(@project, params[:scope]).includes(:tracker).visible scope = scope.open(status == 'o') if status.present? scope = scope.where.not(:id => issue_id.to_i) if issue_id.present? if q.present?