]> source.dussan.org Git - redmine.git/commitdiff
Fixed: private method 'gsub' called for nil:NilClass on activity (#1519).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 24 Jun 2008 16:52:41 +0000 (16:52 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 24 Jun 2008 16:52:41 +0000 (16:52 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1582 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/projects_helper.rb

index 5d51e7075b0ace6f6c7ad661667739a3dd39d188..912482f1c468cba0d93a8c8f076170d83d876328 100644 (file)
@@ -30,7 +30,7 @@ module ProjectsHelper
   end
   
   def format_activity_description(text)
-    h(truncate(text, 250).gsub(%r{<(pre|code)>.*$}m, '...'))
+    h(truncate(text.to_s, 250).gsub(%r{<(pre|code)>.*$}m, '...'))
   end
   
   def project_settings_tabs