diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-15 11:13:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-15 11:13:36 +0000 |
commit | 4f5e7d678e5d9d9151c3d0f7daeaa0714272df39 (patch) | |
tree | ff3771bc5ae8315c2697cead9551f41577ebf7ed /app/models/group.rb | |
parent | 08e309ea46f166a7d6555ddf839f86ec294fb802 (diff) | |
download | redmine-4f5e7d678e5d9d9151c3d0f7daeaa0714272df39.tar.gz redmine-4f5e7d678e5d9d9151c3d0f7daeaa0714272df39.zip |
Fixed: Unrelated error message when creating a group with an invalid name (#9795).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8231 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 03ca4b3ba..fa6b46fff 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -51,6 +51,10 @@ class Group < Principal end end + def self.human_attribute_name(attribute_key_name, *args) + attribute_key_name == 'lastname' ? l(:field_name) : super + end + private # Removes references that are not handled by associations |