Konrad du Plessis 4368e53d95 fix(absences): team filter reads worker ID from <input> value, not data-attr
Konrad reported that selecting a team on /absences/log/ hid ALL
workers, not just non-team. Root cause: the JS read row.dataset.workerId
to filter, which depends on how Django renders choice_value for
ModelMultipleChoiceField iteration — not reliable. Switched to read
the actual <input name='workers'> value attribute, matching the
attendance_log's proven pattern. Same UX intent (hide non-team
workers); more robust implementation.

Also uses an O(1) object lookup instead of array.indexOf, and adds
defensive fallback for both string and numeric team-id keys.
2026-05-15 00:08:09 +02:00
..
2026-02-22 12:14:54 +00:00
2026-04-22 00:19:15 +02:00