Fixed #147 -- Order filter form does not represent current state

This commit is contained in:
Raphael Michel
2016-06-27 19:28:45 +02:00
parent a272f2d170
commit d3ffc2b0dc

View File

@@ -47,7 +47,7 @@
<option value="">{% trans "All products" %}</option>
{% for item in items %}
<option value="{{ item.id }}"
{% if request.GET.item == item.id %}selected="selected"{% endif %}>
{% if request.GET.item|add:"0" == item.id %}selected="selected"{% endif %}>
{{ item.name }}
</option>
{% endfor %}