mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 06:19:09 +01:00
Backport 29622 - Don't change a user account into a regular contact
This commit is contained in:
parent
deffc72aaf
commit
c61d89eed1
@ -211,6 +211,11 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi
|
|||||||
// Only update if there are changes
|
// Only update if there are changes
|
||||||
$old = $this->bocontacts->read($_data['id']);
|
$old = $this->bocontacts->read($_data['id']);
|
||||||
|
|
||||||
|
// Don't change a user account into a contact
|
||||||
|
if($old['owner'] == 0) {
|
||||||
|
unset($_data['owner']);
|
||||||
|
}
|
||||||
|
|
||||||
// Merge to deal with fields not in import record
|
// Merge to deal with fields not in import record
|
||||||
$_data = array_merge($old, $_data);
|
$_data = array_merge($old, $_data);
|
||||||
$changed = $this->tracking->changed_fields($_data, $old);
|
$changed = $this->tracking->changed_fields($_data, $old);
|
||||||
|
Loading…
Reference in New Issue
Block a user