Upload via GUI (278 Dateien)

This commit is contained in:
2026-10-21 16:44:49 +00:00
parent a94a36444c
commit 71eae4116a
6 changed files with 101 additions and 2 deletions
+1
View File
@@ -502,6 +502,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$agentName = '';
foreach ($agents as $a) { if ($a['id'] == $assignedTo) $agentName = $a['name']; }
log_activity($pdo, $ticket['id'], $staff['id'], "Mitarbeiter zugewiesen: {$agentName}");
fcm_notify_assignment($ticket, (int) $assignedTo, (int) $staff['id']); // Push auf die Android-App des neuen Bearbeiters
} elseif ($assignedTo === null && !empty($ticket['assigned_staff_id'])) {
log_activity($pdo, $ticket['id'], $staff['id'], 'Zuweisung entfernt');
}