use same human_attribute_name logic with SCM models at group model (#9795)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8237 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
34087c4178
commit
a36904c9ee
|
@ -51,8 +51,12 @@ class Group < Principal
|
|||
end
|
||||
end
|
||||
|
||||
def self.human_attribute_name(attribute_key_name, *args)
|
||||
attribute_key_name == 'lastname' ? l(:field_name) : super
|
||||
def self.human_attribute_name(attribute_key_name)
|
||||
attr_name = attribute_key_name
|
||||
if attr_name == 'lastname'
|
||||
attr_name = "name"
|
||||
end
|
||||
super(attr_name)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in New Issue