🐛 Fix link on reopen button

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
2020-08-10 18:22:12 +01:00
parent 07fb834c90
commit e6b623be23
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
} catch (PDOException $e) {
$alert = array("danger", "Failed to reopen request: " . $e->getMessage());
}
$newURL = "/";
$newURL = "/view?rid=" . $request['uuid'];
echo("<script>window.location = '$newURL'</script>");
} else {
$alert = array("danger", "You are not authorised to reopen this request.");

View File

@@ -79,7 +79,7 @@
<?php } ?>
<?php } elseif ($request['status'] == 'Closed') { ?>
<?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 } } ?>
</p>
</div>