summaryrefslogtreecommitdiffstats
path: root/app/controllers/auto_completes_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-05-13 07:22:44 +0000
committerGo MAEDA <maeda@farend.jp>2020-05-13 07:22:44 +0000
commite16080614e91658d26d8fa015dd6d6cdb9c8634d (patch)
treec3d8ad93476b8a536f857aad0b9768db236047be /app/controllers/auto_completes_controller.rb
parentc37a45d1c3539a89c09f524f5998dbdfa0539323 (diff)
downloadredmine-e16080614e91658d26d8fa015dd6d6cdb9c8634d.tar.gz
redmine-e16080614e91658d26d8fa015dd6d6cdb9c8634d.zip
Fix that issues autocomplete may not find issues with a subject longer than 60 characters (#32125).
Contributed by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19773 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/auto_completes_controller.rb')
-rw-r--r--app/controllers/auto_completes_controller.rb2
1 files changed, 1 insertions, 1 deletions
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
}
}