diff options
author | Go MAEDA <maeda@farend.jp> | 2024-12-27 05:19:58 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-12-27 05:19:58 +0000 |
commit | f55afcc4adbbcef7ae18531f1d03e83f75ee61db (patch) | |
tree | 8c125f5c88007272ce94cc23b860531dfb9b9134 | |
parent | 390546c78d218209aa5d0f35b551cc5aeaa57b49 (diff) | |
download | redmine-f55afcc4adbbcef7ae18531f1d03e83f75ee61db.tar.gz redmine-f55afcc4adbbcef7ae18531f1d03e83f75ee61db.zip |
Increase the maximum description length to 240 characters in the Activity view (#42041).
Patch by Go MAEDA (user:maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@23420 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fe250f7f3..b50930676 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -414,7 +414,7 @@ module ApplicationHelper end def format_activity_description(text) - h(text.to_s.truncate(120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')). + h(text.to_s.truncate(240).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')). gsub(/[\r\n]+/, "<br />").html_safe end |