Fix checkboxes auto-selecting after page reload on Inbox and Run Checks

Added autocomplete="off" attribute to all checkboxes to prevent browser from
automatically restoring checkbox states after page reload.

Changes:
- Inbox page: Added autocomplete="off" to select-all and row checkboxes
- Run Checks page: Added autocomplete="off" to select-all and row checkboxes

This fixes the issue where after deleting items, the browser would automatically
re-select the same number of checkboxes that were previously selected, causing
unwanted selections on the reloaded page.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Ivo Oskamp 2026-02-13 11:00:21 +01:00
parent 385aeb901c
commit b5cf91d5f2
3 changed files with 5 additions and 4 deletions

View File

@ -73,7 +73,7 @@
<tr>
{% if can_bulk_delete %}
<th scope="col" style="width: 34px;">
<input class="form-check-input" type="checkbox" id="inbox_select_all" />
<input class="form-check-input" type="checkbox" id="inbox_select_all" autocomplete="off" />
</th>
{% endif %}
<th scope="col">From</th>
@ -93,7 +93,7 @@
<tr class="inbox-row" data-message-id="{{ row.id }}" style="cursor: pointer;">
{% if can_bulk_delete %}
<td onclick="event.stopPropagation();">
<input class="form-check-input inbox_row_cb" type="checkbox" value="{{ row.id }}" />
<input class="form-check-input inbox_row_cb" type="checkbox" value="{{ row.id }}" autocomplete="off" />
</td>
{% endif %}
<td>{{ row.from_address }}</td>

View File

@ -48,7 +48,7 @@
<thead class="table-light">
<tr>
<th scope="col" style="width: 34px;">
<input class="form-check-input" type="checkbox" id="rc_select_all" />
<input class="form-check-input" type="checkbox" id="rc_select_all" autocomplete="off" />
</th>
<th scope="col">Customer</th>
<th scope="col">Backup</th>
@ -63,7 +63,7 @@
{% for r in rows %}
<tr class="rc-job-row" data-job-id="{{ r.job_id }}" style="cursor: pointer;">
<td onclick="event.stopPropagation();">
<input class="form-check-input rc_row_cb" type="checkbox" value="{{ r.job_id }}" />
<input class="form-check-input rc_row_cb" type="checkbox" value="{{ r.job_id }}" autocomplete="off" />
</td>
<td>{{ r.customer_name }}</td>
<td>{{ r.backup_software }}</td>

View File

@ -6,6 +6,7 @@ This file documents all changes made to this project via Claude Code.
### Fixed
- Fixed Autotask tickets and internal tickets not being linked to missed runs by calling `link_open_internal_tickets_to_run` after creating missed JobRun records in `_ensure_missed_runs_for_job` (both weekly and monthly schedules), ensuring missed runs now receive the same ticket propagation as email-based runs
- Fixed checkboxes being automatically re-selected after delete actions on Inbox and Run Checks pages by adding `autocomplete="off"` attribute to all checkboxes, preventing browser from restoring previous checkbox states after page reload
## [2026-02-12]