mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
assignee_avatar method causes NoMethodError if the given object is a group (#31391).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18188 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6d6ea928c8
commit
cfdd150da8
@ -24,14 +24,14 @@ module AvatarsHelper
|
||||
return '' unless user
|
||||
|
||||
options.merge!(:title => l(:field_assigned_to) + ": " + user.name)
|
||||
avatar(user, options).html_safe
|
||||
avatar(user, options).to_s.html_safe
|
||||
end
|
||||
|
||||
def author_avatar(user, options={})
|
||||
return '' unless user
|
||||
|
||||
options.merge!(:title => l(:field_author) + ": " + user.name)
|
||||
avatar(user, options).html_safe
|
||||
avatar(user, options).to_s.html_safe
|
||||
end
|
||||
|
||||
# Returns the avatar image tag for the given +user+ if avatars are enabled
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user