From 1fad29bc146bcd939a50dcfe29ad7f258eaf84a8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 25 Apr 2015 07:40:46 +0000 Subject: Merged r14179 (#19569). git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14210 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/member.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/member.rb b/app/models/member.rb index b76e37dbd..72a92db53 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -19,7 +19,7 @@ class Member < ActiveRecord::Base belongs_to :user belongs_to :principal, :foreign_key => 'user_id' has_many :member_roles, :dependent => :destroy - has_many :roles, :through => :member_roles + has_many :roles, lambda {uniq}, :through => :member_roles belongs_to :project validates_presence_of :principal, :project -- cgit v1.2.3