From 3ef1d22aa68013a0d9cdcaa82ebcb1466742c972 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 30 Apr 2026 14:40:54 +0200 Subject: [PATCH] fix: Mark all mapping attributes as optional Signed-off-by: Carl Schwan --- lib/Settings/Admin.php | 4 ++-- tests/unit/Settings/AdminTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 8bb9214c9..9f89c3b86 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -121,12 +121,12 @@ public function getForm(): TemplateResponse { 'displayName_mapping' => [ 'text' => $this->l10n->t('Attribute to map the displayname to.'), 'type' => 'line', - 'required' => true, + 'required' => false, ], 'email_mapping' => [ 'text' => $this->l10n->t('Attribute to map the email address to.'), 'type' => 'line', - 'required' => true, + 'required' => false, ], 'quota_mapping' => [ 'text' => $this->l10n->t('Attribute to map the quota to.'), diff --git a/tests/unit/Settings/AdminTest.php b/tests/unit/Settings/AdminTest.php index f2fbf1050..3cd153f16 100644 --- a/tests/unit/Settings/AdminTest.php +++ b/tests/unit/Settings/AdminTest.php @@ -134,12 +134,12 @@ public function formDataProvider(): array { 'displayName_mapping' => [ 'text' => $this->l10n->t('Attribute to map the displayname to.'), 'type' => 'line', - 'required' => true, + 'required' => false, ], 'email_mapping' => [ 'text' => $this->l10n->t('Attribute to map the email address to.'), 'type' => 'line', - 'required' => true, + 'required' => false, ], 'quota_mapping' => [ 'text' => $this->l10n->t('Attribute to map the quota to.'),