From: Jean-Philippe Lang Date: Mon, 28 Feb 2011 20:23:28 +0000 (+0000) Subject: Stringify avatar to prevent "can't convert nil into String" errors on gantt (#7317). X-Git-Tag: 1.2.0~857 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93bc9b17a9e8a5d004d98c2e94defe5fa644da41;p=redmine.git Stringify avatar to prevent "can't convert nil into String" errors on gantt (#7317). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4968 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index fa3c46f46..f551f1c1a 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -353,7 +353,7 @@ module Redmine subject = "" 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 << ''