preset alternate email with backup email address (RFE 111)

This commit is contained in:
Roland Gruber 2014-07-27 13:24:19 +00:00
parent de8b444e39
commit e5e219f35c
2 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,8 @@
September 2014 4.7 September 2014 4.7
- Personal: support pager attribute (hidden by default)
- renamed config/lam.conf_sample to lam.conf.sample and config.cfg_sample to config.cfg.sample - renamed config/lam.conf_sample to lam.conf.sample and config.cfg_sample to config.cfg.sample
- LAM Pro:
-> Password dialog: preset alternate email address with backup email address (RFE 111)
12.06.2014 4.6 12.06.2014 4.6

View File

@ -1068,7 +1068,15 @@ class accountContainer {
$container->addElement($pwdMailCheckbox); $container->addElement($pwdMailCheckbox);
$container->addElement(new htmlHelpLink('407'), true); $container->addElement(new htmlHelpLink('407'), true);
if (($_SESSION['config']->getLamProMailAllowAlternateAddress() != 'false')) { if (($_SESSION['config']->getLamProMailAllowAlternateAddress() != 'false')) {
$container->addElement(new htmlTableExtendedInputField(_('Alternate recipient'), 'lamPasswordChangeSendMailAddress', '', '410')); $alternateMail = '';
$pwdResetModule = $this->getAccountModule('passwordSelfReset');
if (!empty($pwdResetModule)) {
$backupMail = $pwdResetModule->getBackupEmail();
if (!empty($backupMail)) {
$alternateMail = $pwdResetModule->getBackupEmail();
}
}
$container->addElement(new htmlTableExtendedInputField(_('Alternate recipient'), 'lamPasswordChangeSendMailAddress', $alternateMail, '410'));
} }
} }
$container->addElement(new htmlSpacer(null, '10px'), true); $container->addElement(new htmlSpacer(null, '10px'), true);