summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-29 17:55:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-29 17:55:59 +0000
commit86874785b7e591b5b349ec920b23a09a3fbefd35 (patch)
treea11fa5d5e8fffaf24a7ce2648b7db67f43a44021 /app
parenta658679d29ebebe6f68d9292fcb00e973002cb70 (diff)
downloadredmine-86874785b7e591b5b349ec920b23a09a3fbefd35.tar.gz
redmine-86874785b7e591b5b349ec920b23a09a3fbefd35.zip
Fixed error on repository when there are no comments in a changeset (#4126).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2983 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 8a4f8f6d8..b302879fb 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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)