Skip to content

Commit

Permalink
fix: Restore correct operation of column sort headers. (#5253)
Browse files Browse the repository at this point in the history
Fixes #5234. Was broken in c061caa.
  • Loading branch information
larseggert authored Mar 1, 2023
1 parent ad553cc commit 4f9be6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ietf/doc/utils_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ def num(i):
if query and hasattr(query, "urlencode"): # fed a Django QueryDict
d = query.copy()
for h in meta['headers']:
h["sort_url"] = "?" + d.urlencode()
if h['key'] == sort_key:
h['sorted'] = True
if sort_reversed:
Expand All @@ -262,5 +261,6 @@ def num(i):
d["sort"] = "-" + h["key"]
else:
d["sort"] = h["key"]
h["sort_url"] = "?" + d.urlencode()

return (docs, meta)

0 comments on commit 4f9be6e

Please sign in to comment.