Deleting recurring tickets - correctly pull subject/frequency

This commit is contained in:
wrongecho 2024-02-16 12:20:49 +00:00 committed by GitHub
parent 793a4f9c8e
commit ae80bba5ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1383,8 +1383,8 @@ if (isset($_GET['delete_recurring_ticket'])) {
// Get Scheduled Ticket Subject Ticket Prefix, Number and Client ID for logging and alert message
$sql = mysqli_query($mysqli, "SELECT * FROM scheduled_tickets WHERE scheduled_ticket_id = $scheduled_ticket_id");
$row = mysqli_fetch_array($sql);
$scheduled_ticket_subject = sanitizeInput($row['scheduled_ticket_subject']);
$scheduled_ticket_frequency = sanitizeInput($row['scheduled_ticket_frequency']);
$subject = sanitizeInput($row['scheduled_ticket_subject']);
$frequency = sanitizeInput($row['scheduled_ticket_frequency']);
$client_id = intval($row['scheduled_ticket_client_id']);