Kostenpositionen im Durchführungsdrawer bearbeiten
This commit is contained in:
1 parent
2a09401600
commit
6226f2a037
4 files changed
+19
-14
No files matched your search
@@ -1192,17 +1192,6 @@ function market_management_set_occurrence_contact(PDO $pdo, array $input): array
|
||||
return (array) $stmt->fetch();
|
||||
}
|
||||
|
||||
function market_management_delete_organizer(PDO $pdo, int $occurrenceId): array
|
||||
{
|
||||
$stmt = $pdo->prepare('DELETE FROM market_occurrence_organizer WHERE occurrence_id = :occurrence_id RETURNING id, occurrence_id');
|
||||
$stmt->execute([':occurrence_id' => $occurrenceId]);
|
||||
$organizer = $stmt->fetch();
|
||||
if (!is_array($organizer)) {
|
||||
throw new RuntimeException('Veranstalter nicht gefunden.');
|
||||
}
|
||||
return $organizer;
|
||||
}
|
||||
|
||||
function market_management_create_cost_item(PDO $pdo, array $input): array
|
||||
{
|
||||
$occurrenceId = market_management_require_positive_id($input['occurrence_id'] ?? null, 'occurrence_id');
|
||||
|
||||
Reference in new issue
Block a user