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