]> source.dussan.org Git - redmine.git/commitdiff
Fixed error on repository when there are no comments in a changeset (#4126).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 29 Oct 2009 17:55:59 +0000 (17:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 29 Oct 2009 17:55:59 +0000 (17:55 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2983 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 8a4f8f6d8af1a239b6b079b61fd4d0fd604ff1c5..b302879fb6499acd2554d97bb57e602f1e1f8fc6 100644 (file)
@@ -214,7 +214,7 @@ module ApplicationHelper
 
   # Truncates and returns the string as a single line
   def truncate_single_line(string, *args)
-    truncate(string, *args).gsub(%r{[\r\n]+}m, ' ')
+    truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ')
   end
 
   def html_hours(text)