bugfix remove starter, return to shiai modal after add starter, startertype info in startertable and shiai modal
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user