API - New tickets

- Allow creating tickets for no client / no contact
- Set URL view key
- Fix line break after ticket details that causes odd email formatting
This commit is contained in:
wrongecho
2024-12-14 17:06:03 +00:00
parent 7577f505d5
commit 3eda726b2b
2 changed files with 11 additions and 6 deletions

View File

@@ -29,11 +29,11 @@ if (isset($_POST['ticket_priority'])) {
if (isset($_POST['ticket_details'])) {
$details = sanitizeInput($_POST['ticket_details']);
$details = sanitizeInput($_POST['ticket_details']) . "<br>";
} elseif ($ticket_row) {
$details = $ticket_row['ticket_details'];
} else {
$details = '< blank >';
$details = '< blank ><br>';
}
if (isset($_POST['ticket_vendor_id'])) {