diff --git a/ckanext/wet_boew/templates/wet_boew/snippets/search_form.html b/ckanext/wet_boew/templates/wet_boew/snippets/search_form.html index dd02fb7..2462f44 100644 --- a/ckanext/wet_boew/templates/wet_boew/snippets/search_form.html +++ b/ckanext/wet_boew/templates/wet_boew/snippets/search_form.html @@ -4,7 +4,6 @@ {% set placeholder = placeholder if placeholder else _('Search...') %} {% set sorting = sorting if sorting else [(_('Name Ascending'), 'name asc'), (_('Name Descending'), 'name desc')] %} {% set search_class = search_class if search_class else 'search-giant' %} -{% set sort_arg = request.params.get('sort') %}
{% block search_input %} @@ -48,7 +47,7 @@ {% snippet 'snippets/search_result_text.html', query=query, count=count, type=type %}
- {% snippet "snippets/sort_by.html", sort=sort_arg %} + {% snippet "snippets/sort_by.html", sort=c.sort_by_selected %}
{% endif %}