Merge pull request #5865 from skv-headless/master
pluck user_ids during team import
This commit is contained in:
commit
8bcb2ff27e
1 changed files with 1 additions and 2 deletions
|
@ -88,8 +88,7 @@ class ProjectTeam
|
|||
target_project = project
|
||||
|
||||
source_team = source_project.users_projects.to_a
|
||||
target_team = target_project.users_projects.to_a
|
||||
target_user_ids = target_team.map(&:user_id)
|
||||
target_user_ids = target_project.users_projects.pluck(:user_id)
|
||||
|
||||
source_team.reject! do |tm|
|
||||
# Skip if user already present in team
|
||||
|
|
Loading…
Reference in a new issue