]> source.dussan.org Git - redmine.git/commitdiff
Stringify avatar to prevent "can't convert nil into String" errors on gantt (#7317).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 28 Feb 2011 20:23:28 +0000 (20:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 28 Feb 2011 20:23:28 +0000 (20:23 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4968 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index fa3c46f46249c0845919f11df738e474d45fbb1f..f551f1c1a5fe3d74afdb8c49ed513f789ac37e23 100644 (file)
@@ -353,7 +353,7 @@ module Redmine
           subject = "<span class='#{css_classes}'>"
           if issue.assigned_to.present?
             assigned_string = l(:field_assigned_to) + ": " + issue.assigned_to.name
-            subject << view.avatar(issue.assigned_to, :class => 'gravatar icon-gravatar', :size => 10, :title => assigned_string)
+            subject << view.avatar(issue.assigned_to, :class => 'gravatar icon-gravatar', :size => 10, :title => assigned_string).to_s
           end
           subject << view.link_to_issue(issue)
           subject << '</span>'