mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
if admin explicitly set a non-alias, we need to add it to aliases to keep it after storing signature by user
This commit is contained in:
parent
a839e46965
commit
d801769d52
@ -1236,6 +1236,11 @@ class admin_mail
|
||||
$sel_options['ident_email_alias'] = array_merge(
|
||||
array('' => $content['mailLocalAddress'].' ('.lang('Default').')'),
|
||||
array_combine($content['mailAlternateAddress'], $content['mailAlternateAddress']));
|
||||
// if admin explicitly set a non-alias, we need to add it to aliases to keep it after storing signature by user
|
||||
if ($content['ident_email'] !== $content['mailLocalAddress'] && !isset($sel_options['ident_email_alias'][$content['ident_email']]))
|
||||
{
|
||||
$sel_options['ident_email_alias'][$content['ident_email']] = $content['ident_email'];
|
||||
}
|
||||
// copy ident_email to select-box ident_email_alias, as et2 requires unique ids
|
||||
$content['ident_email_alias'] = $content['ident_email'];
|
||||
$content['select_ident_mail'] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user