bugfix remove starter, return to shiai modal after add starter, startertype info in startertable and shiai modal

This commit is contained in:
marko
2023-03-25 17:02:07 +01:00
parent 77279da565
commit c5bc01649e
5 changed files with 23 additions and 40 deletions

View File

@@ -16,12 +16,10 @@ dbConnector::connect(
participo::authentificate();
$eventId = $_POST['eventId'] ?? null;
$starterId = $_POST['userId'] ?? null;
$starterId = $_POST['starterId'] ?? null;
$returnToUrl = $_POST['returnToUrl'] ?? 'participo/';
$starter = new Starter(null, $eventId, null, $starterId);
$starter = Starter::loadFromDb($starterId);
$starter->removeFromDb();
header('Location: ' . urldecode($returnToUrl), true, 301);