From f61f19518fd321d57e89d113b4ca15ecdc7ef00e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 13 May 2020 00:46:51 +0000 Subject: [PATCH] Fix that issues autocomplete may not find issues with a subject longer than 60 characters (#12250). Contributed by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19771 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/auto_completes_controller.rb | 2 +- public/stylesheets/application.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/auto_completes_controller.rb b/app/controllers/auto_completes_controller.rb index c0a0c242a..3b87d9e81 100644 --- a/app/controllers/auto_completes_controller.rb +++ b/app/controllers/auto_completes_controller.rb @@ -56,7 +56,7 @@ class AutoCompletesController < ApplicationController issues.map {|issue| { 'id' => issue.id, - 'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(60)}", + 'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(255)}", 'value' => issue.id } } diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 954006bed..278d10450 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -1638,6 +1638,7 @@ img.filecontent.image {background-image: url(../images/transparent.png);} } .ui-autocomplete .ui-menu-item > div { padding: 4px 8px; + max-width: 500px; } .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border-color: #759FCF; -- 2.39.5