From: Eric Davis Date: Thu, 19 Aug 2010 04:32:36 +0000 (+0000) Subject: Merged r3929 from trunk. X-Git-Tag: 1.0.1~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=597266e5a2c1d51367ac07511f28faf804d51fd0;p=redmine.git Merged r3929 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@3979 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/member.rb b/app/models/member.rb index 94751efb2..d840cfc3e 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -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