Upload via GUI (290 Dateien)

This commit is contained in:
2026-10-23 17:22:28 +00:00
parent 78cf43591a
commit 1a14a7acdc
4 changed files with 54 additions and 2 deletions
@@ -15,6 +15,13 @@ if ($departmentFilter !== '') {
array_push($params, ...$departmentParams);
}
// Wiedervorlage: ausgeblendet, außer mit ?snoozed=1 (dann nur diese)
$where[] = !empty($_GET['snoozed']) ? (ticket_snooze_available() ? "t.snoozed_until > '" . db_now() . "'" : '1=0') : ticket_not_snoozed_sql('t');
// Beobachtet: nur Tickets, die der angemeldete Mitarbeiter beobachtet (?following=1)
if (!empty($_GET['following'])) {
$where[] = 't.id IN (SELECT ticket_id FROM ticket_followers WHERE staff_id = ?)';
$params[] = (int) $staff['id'];
}
$statuses = array_values(array_filter(
array_map('trim', explode(',', (string) ($_GET['status'] ?? 'open,pending,answered,on_hold'))),
fn(string $status) => in_array($status, MOBILE_API_STATUSES, true)