Skip to content

Commit

Permalink
Merge pull request #215 from ENCODE-DCC/hot_fix_facets
Browse files Browse the repository at this point in the history
facet order fix
  • Loading branch information
nikhilRP committed Apr 7, 2014
2 parents e0d3429 + e5f8679 commit 44ebcd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/encoded/views/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def search(context, request, search_type=None):
if len(doc_types) == 1 and 'facets' in root[doc_types[0]].schema:
facets = root[doc_types[0]].schema['facets']
if request.has_permission('search_audit'):
facets = dict(facets, **{'Audit category': 'audit.category'})
facets = facets.copy()
facets['Audit category'] = 'audit.category'
for facet_title in facets:
field = facets[facet_title]
if field != 'audit.category':
Expand Down

0 comments on commit 44ebcd1

Please sign in to comment.