From c58ada454071c0c5f4944e271fdf2b2790342cab Mon Sep 17 00:00:00 2001 From: bsiggel Date: Tue, 20 Jan 2026 20:46:31 +0100 Subject: [PATCH] Refactor CMietobjekt entity by removing unused contact fields, updating layout indices, and modifying cache timestamps in config; add new listSmall layout for CVmhMietverhltnis. --- .../Resources/i18n/de_DE/CMietobjekt.json | 2 -- .../CMietobjekt/bottomPanelsDetail.json | 16 +++-------- .../layouts/CVmhMietverhltnis/listSmall.json | 27 +++++++++++++++++++ .../metadata/entityDefs/CMietobjekt.json | 8 ------ data/config.php | 4 +-- 5 files changed, 33 insertions(+), 24 deletions(-) create mode 100644 custom/Espo/Custom/Resources/layouts/CVmhMietverhltnis/listSmall.json diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CMietobjekt.json b/custom/Espo/Custom/Resources/i18n/de_DE/CMietobjekt.json index 4c68d26d..4e8f6eed 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CMietobjekt.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CMietobjekt.json @@ -4,13 +4,11 @@ "objekttyp": "Objekttyp", "lage": "Lage", "vmhMietverhltnises2Mietobjekt": "Mietverhältnisse", - "contact2mietobjekt": "Kontakte", "contactsMietobjekt": "Freigegebene Nutzer", "dokumentesMietobjekt": "Dokumente" }, "links": { "vmhMietverhltnises2Mietobjekt": "Mietverhältnisse", - "contact2mietobjekt": "Kontakte", "contactsMietobjekt": "Freigegebene Nutzer", "dokumentesMietobjekt": "Dokumente" }, diff --git a/custom/Espo/Custom/Resources/layouts/CMietobjekt/bottomPanelsDetail.json b/custom/Espo/Custom/Resources/layouts/CMietobjekt/bottomPanelsDetail.json index e1845201..7ded4638 100644 --- a/custom/Espo/Custom/Resources/layouts/CMietobjekt/bottomPanelsDetail.json +++ b/custom/Espo/Custom/Resources/layouts/CMietobjekt/bottomPanelsDetail.json @@ -14,28 +14,20 @@ "sticked": true, "index": 1 }, - "_tabBreak_2": { - "index": 2, - "tabBreak": true, - "tabLabel": "Kontakte" - }, - "contact2mietobjekt": { - "index": 3 - }, "_tabBreak_3": { - "index": 4, + "index": 2, "tabBreak": true, "tabLabel": "Mietverhältnisse" }, "vmhMietverhltnises2Mietobjekt": { - "index": 5 + "index": 3 }, "_tabBreak_4": { - "index": 6, + "index": 4, "tabBreak": true, "tabLabel": "Dokumente" }, "dokumentesMietobjekt": { - "index": 7 + "index": 5 } } \ No newline at end of file diff --git a/custom/Espo/Custom/Resources/layouts/CVmhMietverhltnis/listSmall.json b/custom/Espo/Custom/Resources/layouts/CVmhMietverhltnis/listSmall.json new file mode 100644 index 00000000..5d909544 --- /dev/null +++ b/custom/Espo/Custom/Resources/layouts/CVmhMietverhltnis/listSmall.json @@ -0,0 +1,27 @@ +[ + { + "name": "name", + "width": 30, + "link": true + }, + { + "name": "vertragsdatum", + "width": 12 + }, + { + "name": "status", + "width": 15 + }, + { + "name": "beendigungsTatbestand", + "width": 19 + }, + { + "name": "kndigungsgrundWohnraum", + "width": 20 + }, + { + "name": "auszugsfrist", + "width": 12 + } +] \ No newline at end of file diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CMietobjekt.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CMietobjekt.json index a265521a..088f0f97 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CMietobjekt.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CMietobjekt.json @@ -118,14 +118,6 @@ "audited": false, "isCustom": true }, - "contact2mietobjekt": { - "type": "hasMany", - "relationName": "cMietobjektContact", - "foreign": "cVmhmietobjekt2contact", - "entity": "Contact", - "audited": false, - "isCustom": true - }, "contactsMietobjekt": { "type": "hasMany", "relationName": "cMietobjektContactPortal", diff --git a/data/config.php b/data/config.php index 64e2199c..93c194f5 100644 --- a/data/config.php +++ b/data/config.php @@ -349,8 +349,8 @@ return [ 0 => 'youtube.com', 1 => 'google.com' ], - 'cacheTimestamp' => 1768937772, - 'microtime' => 1768937772.265391, + 'cacheTimestamp' => 1768938316, + 'microtime' => 1768938316.687896, 'siteUrl' => 'https://crm.bitbylaw.com', 'fullTextSearchMinLength' => 4, 'appTimestamp' => 1768843902,