From 1921464e27b7026b0dd8f47acbffcdb1642fdefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Sun, 20 Sep 2026 09:07:19 +0200 Subject: [PATCH] =?UTF-8?q?Marktname=20=C3=B6ffnet=20Detailkarte=20mit=20L?= =?UTF-8?q?ese-=20und=20Editieransicht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/shared/auth/ui/home.php | 25 ++++++++++++++++--------- public/api/market-definition.php | 22 +++++++++++++++++----- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index 7cbb8ad..5671403 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -182,8 +182,10 @@ function auth_render_market_definitions_content(array $marketTable): string $website = (string) ($row['website_url'] ?? ''); $websiteValue = $website === '' ? 'Nicht hinterlegt' : $website; $status = ($row['archived_at'] ?? null) === null ? 'Aktiv' : 'Archiviert'; - $html[] = '
'; - $html[] = '
' . auth_escape_html((string) ($row['name'] ?? '')) . '
'; + $marketId = (int) ($row['id'] ?? 0); + $marketName = (string) ($row['name'] ?? ''); + $html[] = '
'; + $html[] = '
'; $html[] = '
' . auth_escape_html((string) ($row['category_name'] ?? $row['category_code'] ?? '')) . '
'; $html[] = '
' . auth_escape_html($websiteValue) . '
'; $html[] = '
' . auth_escape_html((string) ($row['occurrence_count'] ?? 0)) . '
'; @@ -192,7 +194,7 @@ function auth_render_market_definitions_content(array $marketTable): string } $html[] = ''; $html[] = ''; - $html[] = '