This commit is contained in:
sspsk 2018-03-14 21:29:16 +00:00 committed by GitHub
commit 9f28fc800f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View file

@ -11,7 +11,7 @@ module Admin
end
def show
@registrations = @conference.registrations.joins(:qanswers).uniq
@registrations = @conference.registrations.joins(:qanswers).distinct
end
def new

View file

@ -9,7 +9,7 @@ module Admin
if current_user.has_role? :organization_admin, :any
@conferences_with_role = Organization.with_role('organization_admin', current_user).map { |org| org.conferences.pluck :short_title }.flatten
end
@conferences_with_role.uniq!
@conferences_with_role.distinct!
return if @conference.blank?
@versions = PaperTrail::Version.where(conference_id: @conference.id).accessible_by(current_ability)

View file

@ -14,7 +14,7 @@ module Admin
def show
if can_manage_volunteers?(@conference)
@volunteers = if @conference.use_vpositions
@conference.registrations.joins(:vchoices).uniq
@conference.registrations.joins(:vchoices).distinct
else
@conference.registrations.where(volunteer: true)
end