[Bug] Verwaiste History-Einträge nach Mitarbeiter-Löschung #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Schweregrad: MEDIUM
Dateien:
js/data.js:71-73Problem:
removeEmployeeentfernt nur ausemployees, nicht aushistory. Einträge bleiben und werden als „(unbekannt)“ angezeigt.Fix: In
removeEmployeezusätzlichstate.history = state.history.filter(h => h.employeeId !== id).Behoben in
142e0ef:removeEmployeeentfernt jetzt zusätzlich alle History-Einträge des Mitarbeiters — keine verwaisten(unbekannt)-Zeilen mehr. Verhalten gewählt: History mitlöschen. Inkl. Test.