Upload via GUI (340 Dateien)

This commit is contained in:
2026-10-26 21:19:25 +00:00
parent 12699f0918
commit 2452849c74
7 changed files with 42 additions and 12 deletions
@@ -16,5 +16,7 @@ if ($number === '') {
}
$pdo = get_db();
$ticket = api_find_ticket($pdo, $staff, $number);
$threadId = api_add_ticket_message($pdo, $staff, $ticket, $type, $message, $setStatus, $signatureChoice);
$resolutionCode = isset($body['resolutionCode']) ? trim((string) $body['resolutionCode']) : null;
$resolutionNote = trim((string) ($body['resolutionNote'] ?? ''));
$threadId = api_add_ticket_message($pdo, $staff, $ticket, $type, $message, $setStatus, $signatureChoice, $resolutionCode, $resolutionNote);
api_json(['threadId' => $threadId], 201);