Merge pull request #3740 from okriuchykhin/ok_SCI_6375

Fix duplicated projects in the drop down on the new reports page [SCI-6375]
This commit is contained in:
Alex Kriuchykhin 2021-12-13 17:07:58 +01:00 committed by GitHub
commit 0be7a363d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -360,6 +360,7 @@ class ReportsController < ApplicationController
.with_granted_permissions(current_user, ProjectPermissions::READ)
.merge(Experiment.active)
.merge(MyModule.active)
.group(:id)
.select(:id, :name)
end