##// END OF EJS Templates
use same human_attribute_name logic with SCM models at group model (#9795)...
Toshi MARUYAMA -
r8117:a36904c9ee85
parent child
Show More
@@ -51,8 +51,12 class Group < Principal
51 end
51 end
52 end
52 end
53
53
54 def self.human_attribute_name(attribute_key_name, *args)
54 def self.human_attribute_name(attribute_key_name)
55 attribute_key_name == 'lastname' ? l(:field_name) : super
55 attr_name = attribute_key_name
56 if attr_name == 'lastname'
57 attr_name = "name"
58 end
59 super(attr_name)
56 end
60 end
57
61
58 private
62 private
General Comments 0
You need to be logged in to leave comments. Login now