Skip to content

Commit

Permalink
Fix bug where users couldn't remove themselves from full tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Danyc0 committed Jan 31, 2024
1 parent e0abdbc commit 6101b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volunteers/templates/volunteers/tasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
{% for task in category_tasks %}
<tr>
<td {% if user.is_authenticated %}data-title="{% trans 'I am in' %}!"{% endif %}>
<input type="checkbox" name="task" value="{{ task.id }}" {% if task.status == "FULL" %}title="task FULL" disabled{% endif %} {{ checked|get_item:task.id }} />
<input type="checkbox" name="task" value="{{ task.id }}" {% if task.status == "FULL" %}title="task FULL" {% endif %}{% if task.status == "FULL" and not checked|get_item:task.id %} disabled{% endif %} {{ checked|get_item:task.id }} />

</td>
{% if attending|get_item:task.id == True %}
Expand Down

0 comments on commit 6101b6c

Please sign in to comment.