Align market cards with shared edit pattern

This commit is contained in:
gitea_admin committed 2026-09-19 13:36:01 +02:00
1 parent f2467f4411
commit 906c76a959
4 files changed
+67 -4

No files matched your search

+8
View File
@@ -531,6 +531,14 @@ function market_management_get_occurrence(PDO $pdo, int $occurrenceId, bool $inc
$organizer['contact_person'] = get_contact_reference($pdo, (int) $organizer['contact_person_id']);
}
$occurrence['organizer'] = is_array($organizer) ? $organizer : null;
$occurrence['organization_contact_id'] = is_array($organizer) ? (int) $organizer['organization_contact_id'] : null;
$occurrence['contact_person_id'] = is_array($organizer) ? (int) $organizer['contact_person_id'] : null;
$referenceData = market_management_list_reference_data($pdo, []);
$occurrence['reference_options'] = [
'municipalities' => $referenceData['municipalities'] ?? [],
'parties' => get_party_options($pdo),
'contacts' => get_contact_options($pdo),
];
$costs = $pdo->prepare('SELECT * FROM market_occurrence_cost_item WHERE occurrence_id = :occurrence_id ORDER BY id ASC');
$costs->execute([':occurrence_id' => $occurrenceId]);
$occurrence['cost_items'] = $costs->fetchAll();