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@19784 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-05-18 14:13:58 +00:00
parent 006c5dfce8
commit a4597c31d2
2 changed files with 2 additions and 1 deletions

View File

@@ -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
}
}