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