mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
do not generate a custom fileAs for new contacts
This commit is contained in:
parent
f42f26d86b
commit
f05ce485ca
@ -565,8 +565,8 @@ class Contacts extends Contacts\Storage
|
||||
$options[$fileas_type] = $value = $this->fileas($labels,$fileas_type);
|
||||
$found = $found || $value === $contact['n_fileas'];
|
||||
}
|
||||
// if we have a custom fileAs, add it as first option to keep it
|
||||
if (!empty($contact['n_fileas']) && !$found)
|
||||
// if we have a custom fileAs for an existing entry, add it as first option to keep it
|
||||
if (!empty($contact['n_fileas']) && !$found && !empty($contact['id']))
|
||||
{
|
||||
$options = array_merge([$contact['n_fileas'] => lang('Custom').': '.$contact['n_fileas']], $options);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user