Tickets api - allow setting the billable status when creating a ticket

This commit is contained in:
wrongecho
2025-03-27 14:45:44 +00:00
parent 421abd4c5b
commit eadfdc41c4
2 changed files with 9 additions and 1 deletions

View File

@@ -59,3 +59,11 @@ if (isset($_POST['ticket_assigned_to'])) {
} else {
$assigned_to = '0';
}
if (isset($_POST['ticket_billable'])) {
$billable = intval($_POST['ticket_billable']);
} elseif ($ticket_row) {
$billable = $ticket_row['ticket_billable'];
} else {
$billable = '0';
}