Project

General

Profile

Actions

Maintenance #3048

closed

xmera Omnia - Collection #3083: Update to RM 5.1.7

Check member

Added by liaham about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03/17/2025
Due date:
03/17/2025
% Done:

100%

Estimated time:
Compatible Redmine Version:
5.1.z

Description

diff --git a/app/models/member.rb b/app/models/member.rb
index d5e654e6a..98a1ddcdf 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -64,7 +64,7 @@ class Member < ActiveRecord::Base
   def role_ids=(arg)
     ids = (arg || []).collect(&:to_i) - [0]
     # Keep inherited roles
-    ids += member_roles.select {|mr| !mr.inherited_from.nil?}.collect(&:role_id)
+    ids |= member_roles.select {|mr| !mr.inherited_from.nil?}.collect(&:role_id)
 
     new_role_ids = ids - role_ids
     # Add new roles
Actions

Also available in: Atom PDF