Skip to content

Commit

Permalink
Fix question without category is duplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
elmobb authored and Pierre-Sassoulas committed Aug 18, 2022
1 parent b40bd1e commit d680e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion survey/templates/survey/question.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</thead> -->
<tbody>
{% for form in response_form %}
{% if form.field.widget.attrs.category == category.name or not form.field.widget.attrs.category %}
{% if form.field.widget.attrs.category == category.name or category.name == 'No category' and not form.field.widget.attrs.category %}
<tr class="{% if form.errors%} danger {% endif %}">
<td>
{{ form.label|safe }}
Expand Down

0 comments on commit d680e37

Please sign in to comment.