summaryrefslogtreecommitdiffstats
path: root/lib/redmine/field_format.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 16:21:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 16:21:28 +0000
commit500b0c6aff8070692a11f8729f81ed6635c6739f (patch)
tree44c8401bfab066f5d5c5e05a9b15863581b91b09 /lib/redmine/field_format.rb
parentbf1f60f65fdb4e3cc61f9aa3029f35742f370cb2 (diff)
downloadredmine-500b0c6aff8070692a11f8729f81ed6635c6739f.tar.gz
redmine-500b0c6aff8070692a11f8729f81ed6635c6739f.zip
Truncates link custom field URL for display (#21012).
git-svn-id: http://svn.redmine.org/redmine/trunk@14716 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/field_format.rb')
-rw-r--r--lib/redmine/field_format.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb
index c4897c16c..3d97f601b 100644
--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -361,7 +361,7 @@ module Redmine
url = "http://" + url
end
end
- view.link_to value.to_s, url
+ view.link_to value.to_s.truncate(40), url
else
value.to_s
end