From 70cf9b4655ea94aeea1bf870953c2a73efb5b8e5 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Wed, 29 Jul 2020 12:12:37 +0100 Subject: [PATCH] Fix org filter drop downs on collabs and community repo lists --- app/controllers/repositories_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index e61f8f64..fdacbc01 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -48,7 +48,7 @@ def collab_repositories format.html do @pagy, @repositories = pagy(@scope.order(@sort => @order)) - @orgs = @scope.unscope(where: :org).group(:org).count + @orgs = @scope.unscope(where: :org).external.group(:org).count @languages = @scope.unscope(where: :language).group(:language).count end format.rss do @@ -77,7 +77,7 @@ def community format.html do @pagy, @repositories = pagy(@scope.order(@sort => @order)) - @orgs = @scope.unscope(where: :org).group(:org).count + @orgs = @scope.unscope(where: :org).community.group(:org).count @languages = @scope.unscope(where: :language).group(:language).count render :collab_repositories end