From c2714a6813a46feebc3df1842cacc9aaabfebe9e Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 3 Feb 2023 11:26:17 +0100 Subject: [PATCH] * Univention: make birthday of users available in addressbook (univentionPerson.univentionBirthday attribute) --- api/src/Contacts/Univention.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/api/src/Contacts/Univention.php b/api/src/Contacts/Univention.php index 428a148619..e15949638e 100644 --- a/api/src/Contacts/Univention.php +++ b/api/src/Contacts/Univention.php @@ -23,9 +23,14 @@ class Univention extends Ldap { function __construct($ldap_config = null, $ds = null) { - $this->schema2egw['univentionmail'] = array( - 'email' => Accounts\Univention::MAIL_ATTR, - ); + $this->schema2egw += [ + 'univentionmail' => [ + 'email' => Accounts\Univention::MAIL_ATTR, + ], + 'univentionperson' => [ + 'bday' => 'univentionbirthday', + ], + ]; parent::__construct($ldap_config, $ds); } @@ -42,4 +47,4 @@ class Univention extends Ldap return parent::save($keys); } -} +} \ No newline at end of file