FIX get assignees bug in issues

(cherry picked from commit e9223c53de)
This commit is contained in:
Jasder 2021-01-18 15:28:20 +08:00 committed by moshenglv
parent 814a1d9e6a
commit 1c59832abf
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Project < ApplicationRecord
end end
def members_user_infos def members_user_infos
members.joins(:roles).where("roles.name in ('Manager', 'Developer')").joins("left join users on members.user_id = users.id ").includes(:user).where("users.type = ?", "User") members.joins(:roles).where("roles.name in ('Manager', 'Developer', 'Reporter')").joins("left join users on members.user_id = users.id ").includes(:user).where("users.type = ?", "User")
# members.joins("left join users on members.user_id = users.id").select("users.id", "users.login","users.firstname","users.lastname") # members.joins("left join users on members.user_id = users.id").select("users.id", "users.login","users.firstname","users.lastname")
# .pluck("users.id", "users.login","users.lastname", "users.firstname") # .pluck("users.id", "users.login","users.lastname", "users.firstname")
end end