Skip to content

Commit

Permalink
add organization facets
Browse files Browse the repository at this point in the history
  • Loading branch information
cirun authored and cirun committed Feb 2, 2022
1 parent d61a533 commit 560c9a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ckan/views/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,11 @@ def pager_url(q=None, page=None): # noqa

def _update_facet_titles(facets, group_type):
for plugin in plugins.PluginImplementations(plugins.IFacets):
facets = plugin.group_facets(facets, group_type, None)
facets = (
plugin.group_facets(facets, group_type, None)
if group_type == "group"
else plugin.organization_facets(facets, group_type, None)
)
return facets


Expand Down

0 comments on commit 560c9a2

Please sign in to comment.