From 8704587ca3acda29ce0954dd829241053172c73e Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Thu, 28 May 2026 18:26:21 +0200 Subject: [PATCH] fix(contactpersoon): make e-mailadres field nullable to prevent HTTP 500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The contactpersoon schema had e-mailadres listed in the top-level required array and with required:true on the property itself. This caused a NOT NULL constraint violation (HTTP 500) when creating or updating a contactpersoon without an email address. Contact persons do not universally require an email (e.g. phone-only or internal-only contacts), so the field is correctly nullable. The ContactpersoonService already handles missing email gracefully by skipping user-account provisioning when no email is present. - Remove "e-mailadres" from schema-level required array - Set required:false on the e-mailadres property - Bump schema version 0.0.26 → 0.0.27 to trigger schema reload - Bump app version 0.2.2 → 0.2.3 for NC immutable cache-bust --- appinfo/info.xml | 2 +- lib/Settings/softwarecatalogus_register.json | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 1bbc07cb..16e21171 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -42,7 +42,7 @@ Vrij en open source onder de EUPL-licentie. **Ondersteuning:** Voor ondersteuning, neem contact op via support@conduction.nl. Voor een Service Level Agreement (SLA), neem contact op via sales@conduction.nl. ]]> - 0.2.2 + 0.2.3 agpl Conduction SoftwareCatalog diff --git a/lib/Settings/softwarecatalogus_register.json b/lib/Settings/softwarecatalogus_register.json index 0922b653..0ffdbbdc 100644 --- a/lib/Settings/softwarecatalogus_register.json +++ b/lib/Settings/softwarecatalogus_register.json @@ -1704,12 +1704,10 @@ "slug": "contactpersoon", "title": "Contactpersoon", "description": "Contactgegevens van een persoon", - "version": "0.0.26", + "version": "0.0.27", "summary": "", "icon": "AccountMultiple", - "required": [ - "e-mailadres" - ], + "required": [], "properties": { "voornaam": { "type": "string", @@ -1884,7 +1882,7 @@ "title": "E-mailadres", "type": "string", "format": "email", - "required": true, + "required": false, "visible": true, "facetable": false, "order": 6,