Removed hard-coded english error message on failed Member creation
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3929 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
56e3953a71
commit
e00884bcca
|
@ -82,7 +82,7 @@ class Member < ActiveRecord::Base
|
|||
protected
|
||||
|
||||
def validate
|
||||
errors.add_to_base "Role can't be blank" if member_roles.empty? && roles.empty?
|
||||
errors.add_on_empty :role if member_roles.empty? && roles.empty?
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in New Issue