Verified Commit aa01ba15 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

feat(invitations) Show invitation and user names in registration list

issue #5850
parent 084b9e8f
......@@ -33,6 +33,18 @@ class RegistrationColumn extends LinkColumn
$value = RegistrationStateAttribute::renderValue($value);
} elseif ($this->attributes[0] == 'fdRegistrationLastChange') {
$value = RegistrationLastChangeAttribute::renderValue($value);
} elseif ($this->attributes[0] == 'fdRegistrationUserDN') {
try {
$value = objects::link($value, 'user', '', NULL, FALSE, FALSE);
} catch (NonExistingLdapNodeException $e) {
$value = _('invalid');
}
} elseif ($this->attributes[0] == 'fdRegistrationInvitationDN') {
try {
$value = objects::link($value, 'invitation', '', NULL, FALSE, FALSE);
} catch (NonExistingLdapNodeException $e) {
$value = _('invalid');
}
} else {
$value = htmlentities($value, ENT_COMPAT, 'UTF-8');
}
......@@ -49,9 +61,11 @@ class registrationManagement extends management
public static $columns = array(
array('ObjectTypeColumn', array()),
array('LinkColumn', array('attributes' => 'nameAttr', 'label' => 'Email')),
array('RegistrationColumn', array('attributes' => 'fdRegistrationState', 'label' => 'Status')),
array('RegistrationColumn', array('attributes' => 'fdRegistrationLastChange', 'label' => 'Last change')),
array('LinkColumn', array('attributes' => 'nameAttr', 'label' => 'Email')),
array('RegistrationColumn', array('attributes' => 'fdRegistrationInvitationDN', 'label' => 'Invitation')),
array('RegistrationColumn', array('attributes' => 'fdRegistrationState', 'label' => 'Status')),
array('RegistrationColumn', array('attributes' => 'fdRegistrationLastChange', 'label' => 'Last change')),
array('RegistrationColumn', array('attributes' => 'fdRegistrationUserDN', 'label' => 'User object')),
array('ActionsColumn', array('label' => 'Actions')),
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment