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
This commit is contained in:
Jean-Philippe Lang 2011-02-28 20:23:28 +00:00 committed by Eric Davis
parent c5eef91d1c
commit be4e4c80f7
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,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>'