Upload via GUI (278 Dateien)
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user