From 8724b9d7bb0f59998d8e65968daa072271f99c85 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 8 Feb 2026 22:30:30 +0000 Subject: [PATCH] Ver 14.01 Teams selection fixed --- core/templates/core/log_attendance.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/templates/core/log_attendance.html b/core/templates/core/log_attendance.html index d8b9925..83b13b4 100644 --- a/core/templates/core/log_attendance.html +++ b/core/templates/core/log_attendance.html @@ -164,6 +164,13 @@ if (teamSelect) { teamSelect.addEventListener('change', function() { const teamId = this.value; + + // First, deselect ALL workers to clear previous selection + const allCheckboxes = document.querySelectorAll('input[name="workers"]'); + allCheckboxes.forEach(cb => { + cb.checked = false; + }); + if (teamId && teamWorkersMap[teamId]) { const workerIds = teamWorkersMap[teamId]; // Select workers belonging to the team @@ -281,4 +288,4 @@ form.submit(); } -{% endblock %} \ No newline at end of file +{% endblock %}