From bfd557982bda5ff48840a63e16ce48116b46a459 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Mon, 10 Aug 2020 17:02:54 +0100 Subject: [PATCH] :bug: (Hopefully) fix removing subscribers Signed-off-by: Luke Tainton --- app/public/actions/delsub.php | 4 +--- app/public/view.php | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/public/actions/delsub.php b/app/public/actions/delsub.php index b7f14b8..a279600 100644 --- a/app/public/actions/delsub.php +++ b/app/public/actions/delsub.php @@ -9,9 +9,7 @@ // Remove subscriber(s) if ($is_authorised == true) { if($_SERVER['REQUEST_METHOD'] == 'POST') { - echo($_POST['addSubSelector']); - die(); - foreach ($_POST['addSubSelector'] as $sub) { + foreach ($_POST['addSubSelector[]'] as $sub) { try { $stmt = "DELETE FROM ticket_subscribers WHERE ticket_uuid=:tktuuid AND user_uuid=:usruuid"; $sql = $db->prepare($stmt); diff --git a/app/public/view.php b/app/public/view.php index 0c23fa0..e30403d 100644 --- a/app/public/view.php +++ b/app/public/view.php @@ -50,14 +50,14 @@

-

- Update the request - Add attachment(s) - + Manage subscribers + + Update the request + Add attachment(s) + +

- Manage subscribers -