Skip to content

Commit

Permalink
Fix org filter drop downs on collabs and community repo lists
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jul 29, 2020
1 parent c8b7eaf commit 70cf9b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/repositories_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 70cf9b4

Please sign in to comment.