added mail routing address to self service

This commit is contained in:
Roland Gruber 2019-03-03 10:34:43 +01:00
parent 12d5ac115a
commit 82201ec448
2 changed files with 12 additions and 1 deletions

View File

@ -6,7 +6,7 @@ March 2019
-> New self service fields: Mail routing (Local address) and Windows (Proxy-Addresses) -> New self service fields: Mail routing (Local address) and Windows (Proxy-Addresses)
-> Bind DLZ: support DNAME+XFR records and descriptions in records (requires latest LDAP schema) -> Bind DLZ: support DNAME+XFR records and descriptions in records (requires latest LDAP schema)
-> Cron jobs: added Shadow account expiration notification jobs -> Cron jobs: added Shadow account expiration notification jobs
-> New self service fields: Shadow account expiration date -> New self service fields: Shadow account expiration date, mail routing address
- Fixed bugs: - Fixed bugs:
-> Allow tree-only configurations without any other tab -> Allow tree-only configurations without any other tab

View File

@ -138,6 +138,7 @@ class inetLocalMailRecipient extends baseModule {
// self service // self service
$return['selfServiceFieldSettings'] = array( $return['selfServiceFieldSettings'] = array(
'mailLocalAddress' => _('Local address (read-only)'), 'mailLocalAddress' => _('Local address (read-only)'),
'mailRoutingAddress' => _('Routing address (read-only)'),
); );
return $return; return $return;
} }
@ -374,6 +375,16 @@ class inetLocalMailRecipient extends baseModule {
$row->addField(new htmlOutputText(implode('<br>', $mailLocalAddress), false)); $row->addField(new htmlOutputText(implode('<br>', $mailLocalAddress), false));
$return['mailLocalAddress'] = $row; $return['mailLocalAddress'] = $row;
} }
if (in_array('mailRoutingAddress', $fields)) {
$mailRoutingAddress = null;
if (isset($attributes['mailRoutingAddress'][0])) {
$mailRoutingAddress = $attributes['mailRoutingAddress'][0];
}
$row = new htmlResponsiveRow();
$row->addLabel(new htmlOutputText($this->getSelfServiceLabel('mailRoutingAddress', _('Routing address'))));
$row->addField(new htmlOutputText($mailRoutingAddress));
$return['mailRoutingAddress'] = $row;
}
return $return; return $return;
} }