From 8a9be0cc3c6c940df8334e188c47ef2fcbb8d6c2 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Thu, 27 Jan 2022 12:59:52 +0100 Subject: [PATCH] Fix list of assigned tasks in assigned dropdown [SCI-6456] --- app/controllers/repository_rows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repository_rows_controller.rb b/app/controllers/repository_rows_controller.rb index 8654bcabe..35c1dfad1 100644 --- a/app/controllers/repository_rows_controller.rb +++ b/app/controllers/repository_rows_controller.rb @@ -214,7 +214,7 @@ class RepositoryRowsController < ApplicationController params[:query], whole_phrase: true ) - viewable_modules = assigned_modules.viewable_by_user(current_user, current_team) + viewable_modules = assigned_modules.viewable_by_user(current_user, current_user.teams) private_modules_number = assigned_modules.where.not(id: viewable_modules).count render json: { html: render_to_string(partial: 'shared/my_modules_list_partial.html.erb', locals: {