Don't change a user account into a regular contact

This commit is contained in:
Nathan Gray 2010-03-24 15:43:52 +00:00
parent 3aec3b7e5a
commit a59d33723c

View File

@ -211,6 +211,11 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi
// Only update if there are changes
$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
$_data = array_merge($old, $_data);
$changed = $this->tracking->changed_fields($_data, $old);