mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
an other fix for copying contacts:
- show custom fields, if contact- (not account-)repository is NOT ldap - allow to set the name, but one of the defaults - removed "Links" as copying them is not implemented
This commit is contained in:
parent
a2919ecd3b
commit
1f5d3c0b6a
@ -100,7 +100,7 @@ function org_fileds_to_update($config)
|
||||
}
|
||||
}
|
||||
|
||||
if ($config['account_repository'] != 'ldap') // no custom-fields in ldap
|
||||
if ($config['contact_repository'] != 'ldap') // no custom-fields in ldap
|
||||
{
|
||||
foreach(config::get_customfields('addressbook') as $name => $data)
|
||||
{
|
||||
@ -126,14 +126,12 @@ function copy_fields($config)
|
||||
foreach($bocontacts->contact_fields as $field => $label)
|
||||
{
|
||||
// some fields the user should never be allowed to copy or are coverted by an other attribute (n_fn for all n_*)
|
||||
if (!in_array($field,array('id','tid','created','creator','modified','modifier','n_prefix','n_given','n_middle','n_family','n_suffix', 'account_id', 'uid')))
|
||||
if (!in_array($field,array('id','tid','created','creator','modified','modifier','account_id','uid','etag','n_fn')))
|
||||
{
|
||||
$fields[$field] = $label;
|
||||
}
|
||||
}
|
||||
$fields['link_to'] = 'Links';
|
||||
|
||||
if ($config['account_repository'] != 'ldap') // no custom-fields in ldap
|
||||
if ($config['contact_repository'] != 'ldap') // no custom-fields in ldap
|
||||
{
|
||||
foreach(config::get_customfields('addressbook') as $name => $data)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user