added mail routing address to self service
This commit is contained in:
parent
12d5ac115a
commit
82201ec448
|
@ -6,7 +6,7 @@ March 2019
|
|||
-> 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)
|
||||
-> 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:
|
||||
-> Allow tree-only configurations without any other tab
|
||||
|
||||
|
|
|
@ -138,6 +138,7 @@ class inetLocalMailRecipient extends baseModule {
|
|||
// self service
|
||||
$return['selfServiceFieldSettings'] = array(
|
||||
'mailLocalAddress' => _('Local address (read-only)'),
|
||||
'mailRoutingAddress' => _('Routing address (read-only)'),
|
||||
);
|
||||
return $return;
|
||||
}
|
||||
|
@ -374,6 +375,16 @@ class inetLocalMailRecipient extends baseModule {
|
|||
$row->addField(new htmlOutputText(implode('<br>', $mailLocalAddress), false));
|
||||
$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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue