Upload via GUI (278 Dateien)

This commit is contained in:
2026-10-21 16:44:46 +00:00
parent 738b54048f
commit a94a36444c
6 changed files with 730 additions and 11 deletions
+2
View File
@@ -1298,6 +1298,7 @@ function is_staff_available(PDO $pdo, int $staffId): bool
// Echtzeit-Status
try {
staff_run_auto_offline($pdo);
$s = $pdo->prepare('SELECT status FROM staff_availability WHERE staff_id = ?');
$s->execute([$staffId]);
$avail = $s->fetchColumn();
@@ -1830,6 +1831,7 @@ function save_mentions(PDO $pdo, int $ticketId, int $threadId, int $byStaffId, s
if ($mentionedId === $byStaffId) continue;
$pdo->prepare('INSERT INTO staff_mentions (ticket_id,thread_id,mentioned_staff_id,mentioned_by_staff_id,created_at) VALUES (?,?,?,?,?)')
->execute([$ticketId, $threadId, $mentionedId, $byStaffId, db_now()]);
fcm_notify_mention($ticket, $mentionedId, $byStaffId); // Push auf die Android-App
// E-Mail an erwähnten Mitarbeiter
$stmt = $pdo->prepare('SELECT email, name FROM staff WHERE id=?');
$stmt->execute([$mentionedId]);