From f4e2727af193f6205425504d31349687c6992b0c Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 13 Dec 2021 17:02:36 +0100 Subject: [PATCH] Fix duplicated projects in the drop down on the new reports page [SCI-6375] --- app/controllers/reports_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index 43a98ef92..a82efe5c8 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -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