From 37f45858ee6cd0e56af2ca128cbb953fea453b1d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 14 Sep 2012 10:35:21 +0000 Subject: [PATCH] profile support for description --- lam/lib/modules/inetOrgPerson.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index 5f3be9dd..32363f2c 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -136,6 +136,9 @@ class inetOrgPerson extends baseModule implements passwordService { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideInitials')) { $profileElements[] = new htmlTableExtendedInputField(_('Initials'), 'inetOrgPerson_initials', null, 'initials'); } + if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideDescription')) { + $profileElements[] = new htmlTableExtendedInputField(_('Description'), 'inetOrgPerson_description', null, 'description'); + } if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideStreet')) { $profileElements[] = new htmlTableExtendedInputField(_('Street'), 'inetOrgPerson_street', null, 'streetList'); } @@ -199,6 +202,9 @@ class inetOrgPerson extends baseModule implements passwordService { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideInitials')) { $return['profile_mappings']['inetOrgPerson_initials'] = 'initials'; } + if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideDescription')) { + $return['profile_mappings']['inetOrgPerson_description'] = 'description'; + } if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideJobTitle')) { $return['profile_checks']['inetOrgPerson_title'] = array( 'type' => 'ext_preg',