🐛 Fix link on reopen button
Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
$alert = array("danger", "Failed to reopen request: " . $e->getMessage());
|
$alert = array("danger", "Failed to reopen request: " . $e->getMessage());
|
||||||
}
|
}
|
||||||
$newURL = "/";
|
$newURL = "/view?rid=" . $request['uuid'];
|
||||||
echo("<script>window.location = '$newURL'</script>");
|
echo("<script>window.location = '$newURL'</script>");
|
||||||
} else {
|
} else {
|
||||||
$alert = array("danger", "You are not authorised to reopen this request.");
|
$alert = array("danger", "You are not authorised to reopen this request.");
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } elseif ($request['status'] == 'Closed') { ?>
|
<?php } elseif ($request['status'] == 'Closed') { ?>
|
||||||
<?php if ($_SESSION['uuid'] == $request['created_by']) { ?>
|
<?php if ($_SESSION['uuid'] == $request['created_by']) { ?>
|
||||||
<a href='/reopen?rid=<?php echo($request["uuid"]); ?>' class='btn btn-success my-2'>Reopen request</a>
|
<a href='/actions/reopen?rid=<?php echo($request["uuid"]); ?>' class='btn btn-success my-2'>Reopen request</a>
|
||||||
<?php } } ?>
|
<?php } } ?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user