From f65b7492ec0dfe407e875ef7f63621621bf76015 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 10 Dec 2025 08:56:10 +0100 Subject: [PATCH] added displaying if a contact exists --- Layout/default/AddressDB/View.php | 11 ++++++++++- Layout/default/Preorder/Index.php | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Layout/default/AddressDB/View.php b/Layout/default/AddressDB/View.php index e3490844c..33814c0ea 100644 --- a/Layout/default/AddressDB/View.php +++ b/Layout/default/AddressDB/View.php @@ -180,7 +180,16 @@ wohneinheiten as $unit): ?> - + contact ? json_decode($unit->contact, true) : []; + $contactCount = is_array($contacts) ? count($contacts) : 0; + ?> + + + + + + $unit->id])?>"> id?> diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php index 10367c511..aa3488ba6 100644 --- a/Layout/default/Preorder/Index.php +++ b/Layout/default/Preorder/Index.php @@ -1083,7 +1083,16 @@ $pagination_entity_name = "Vorbestellungen";
is(["preorderfront"]) && !$me->is("preorderreadonly")): ?> - + adb_wohneinheit_id && $preorder->adb_wohneinheit && $preorder->adb_wohneinheit->contact) ? json_decode($preorder->adb_wohneinheit->contact, true) : []; + $contactCount = is_array($contacts) ? count($contacts) : 0; + ?> + + + + + + $preorder->id])?>"> isAdmin()): ?>