Upload via GUI (335 Dateien)

This commit is contained in:
2026-10-24 20:14:48 +00:00
parent b2a0a2d0b8
commit c3b6bd5dcd
6 changed files with 147 additions and 0 deletions
+9
View File
@@ -126,4 +126,13 @@ try {
} catch (Throwable $e) {
$summary['similar'] = ['articles' => [], 'tickets' => []];
}
// Cc-Empfänger, Beobachter und Bewertung des Kunden
try {
$summary['collaborators'] = api_ticket_collaborators($pdo, (int) $ticket['id']);
$summary['followers'] = array_map(fn($f) => ['id' => (int) $f['id'], 'name' => (string) $f['name']], ticket_followers($pdo, (int) $ticket['id']));
$__csat = csat_for_ticket($pdo, (int) $ticket['id']);
$summary['csat'] = $__csat ? ['rating' => $__csat['rating'] !== null ? (int) $__csat['rating'] : null, 'comment' => (string) ($__csat['comment'] ?? ''), 'sentAt' => $__csat['sent_at'], 'answeredAt' => $__csat['answered_at']] : null;
} catch (Throwable $e) {
$summary += ['collaborators' => [], 'followers' => [], 'csat' => null];
}
api_json(['ticket' => $summary]);