Durchführungstag im bestehenden Löschpattern entfernen

This commit is contained in:
gitea_admin committed 2026-09-19 20:59:53 +02:00
1 parent 30c11c5ca7
commit 3d638ab2a1
3 files changed
+56 -2

No files matched your search

+7
View File
@@ -56,6 +56,13 @@ if ($requestMethod === 'POST') {
$day = market_management_create_day($pdo, $fields);
echo json_encode(['ok' => true, 'day' => $day]);
exit;
} elseif (($payload['action'] ?? '') === 'delete_day') {
if (($payload['confirmation'] ?? '') !== 'DELETE') {
throw new InvalidArgumentException('Bestätigung muss exakt DELETE lauten.');
}
$day = market_management_delete_day($pdo, $id);
echo json_encode(['ok' => true, 'day' => $day]);
exit;
} elseif ($scope === 'day') {
market_management_update_day($pdo, $id, $fields);
} elseif (in_array($scope, ['occurrence', 'status', 'overview', 'participation', 'infrastructure', 'travel', 'notes'], true)) {