🐛 (Hopefully) fix removing subscribers
Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
@@ -9,9 +9,7 @@
|
|||||||
// Remove subscriber(s)
|
// Remove subscriber(s)
|
||||||
if ($is_authorised == true) {
|
if ($is_authorised == true) {
|
||||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
echo($_POST['addSubSelector']);
|
foreach ($_POST['addSubSelector[]'] as $sub) {
|
||||||
die();
|
|
||||||
foreach ($_POST['addSubSelector'] as $sub) {
|
|
||||||
try {
|
try {
|
||||||
$stmt = "DELETE FROM ticket_subscribers WHERE ticket_uuid=:tktuuid AND user_uuid=:usruuid";
|
$stmt = "DELETE FROM ticket_subscribers WHERE ticket_uuid=:tktuuid AND user_uuid=:usruuid";
|
||||||
$sql = $db->prepare($stmt);
|
$sql = $db->prepare($stmt);
|
||||||
|
|||||||
@@ -50,14 +50,14 @@
|
|||||||
<h1><?php echo($request['title']); ?></h1>
|
<h1><?php echo($request['title']); ?></h1>
|
||||||
<p style="color: gray; font-style: italic;"><?php echo("#" . sprintf("%'.05d\n", $request["id"])); ?></p>
|
<p style="color: gray; font-style: italic;"><?php echo("#" . sprintf("%'.05d\n", $request["id"])); ?></p>
|
||||||
<p class="lead text-muted"><?php echo($request['description']); ?></p>
|
<p class="lead text-muted"><?php echo($request['description']); ?></p>
|
||||||
<?php if ($request['status'] != 'Closed') { ?>
|
|
||||||
<p>
|
<p>
|
||||||
<a href='/update?rid=<?php echo($request["uuid"]); ?>' class='btn btn-primary my-2'>Update the request</a>
|
<a href='/editsub?rid=<?php echo($request["uuid"]); ?>' class='btn btn-secondary my-2'>Manage subscribers</a>
|
||||||
<a href='/upload?rid=<?php echo($request["uuid"]); ?>' class='btn btn-primary my-2'>Add attachment(s)</a>
|
<?php if ($request['status'] != 'Closed') { ?>
|
||||||
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#closeModal">Close the request</button>
|
<a href='/update?rid=<?php echo($request["uuid"]); ?>' class='btn btn-primary my-2'>Update the request</a>
|
||||||
|
<a href='/upload?rid=<?php echo($request["uuid"]); ?>' class='btn btn-primary my-2'>Add attachment(s)</a>
|
||||||
|
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#closeModal">Close the request</button>
|
||||||
|
<?php } ?>
|
||||||
</p>
|
</p>
|
||||||
<a href='/editsub?rid=<?php echo($request["uuid"]); ?>' class='btn btn-secondary my-2'>Manage subscribers</a>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal fade" id="closeModal" tabindex="-1" aria-labelledby="closeModalLabel" aria-hidden="true">
|
<div class="modal fade" id="closeModal" tabindex="-1" aria-labelledby="closeModalLabel" aria-hidden="true">
|
||||||
|
|||||||
Reference in New Issue
Block a user