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:
parent
c5eef91d1c
commit
be4e4c80f7
|
@ -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>'
|
||||
|
|
Loading…
Reference in New Issue