]> source.dussan.org Git - redmine.git/commitdiff
Truncates link custom field URL for display (#21012).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Oct 2015 16:21:28 +0000 (16:21 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Oct 2015 16:21:28 +0000 (16:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14716 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/field_format.rb

index c4897c16c630e18169e823f92833d0ba6af69762..3d97f601b304bd4c1a0b5b88e06027dec9a74a80 100644 (file)
@@ -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