Skip to content
Snippets Groups Projects
Commit 86874785 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

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
parent a658679d
Branches
Tags
No related merge requests found
...@@ -214,7 +214,7 @@ module ApplicationHelper ...@@ -214,7 +214,7 @@ module ApplicationHelper
# Truncates and returns the string as a single line # Truncates and returns the string as a single line
def truncate_single_line(string, *args) 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 end
def html_hours(text) def html_hours(text)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment