From e6418046aa908eac7c5ea6b8d64d95815c6b6b8c Mon Sep 17 00:00:00 2001 From: wrongecho <32306651+wrongecho@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:15:55 +0000 Subject: [PATCH] Fix deleting recurring tickets --- post/ticket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post/ticket.php b/post/ticket.php index e006319f..9631f947 100644 --- a/post/ticket.php +++ b/post/ticket.php @@ -1374,7 +1374,7 @@ if (isset($_POST['edit_scheduled_ticket']) || isset($_POST['edit_recurring_ticke header("Location: " . $_SERVER["HTTP_REFERER"]); } -if (isset($_GET['delete_scheduled_ticket']) || isset($_POST['delete_recurring_ticket'])) { +if (isset($_GET['delete_scheduled_ticket']) || isset($_GET['delete_recurring_ticket'])) { validateAdminRole(); @@ -1766,4 +1766,4 @@ if (isset($_GET['cancel_ticket_schedule'])) { $_SESSION['alert_message'] = "Ticket schedule cancelled"; header("Location: " . $_SERVER["HTTP_REFERER"]); -} \ No newline at end of file +}