Allow moving of existing cantacts between adressbooks

This commit is contained in:
Jörg Lehrke 2010-07-23 18:05:59 +00:00
parent 5e87b2010b
commit 39596007fe

View File

@ -342,13 +342,11 @@ class addressbook_groupdav extends groupdav_handler
$contact['id'] = $oldContact['id']; $contact['id'] = $oldContact['id'];
// dont allow the client to overwrite certain values // dont allow the client to overwrite certain values
$contact['uid'] = $oldContact['uid']; $contact['uid'] = $oldContact['uid'];
$contact['owner'] = $oldContact['owner']; //$contact['owner'] = $oldContact['owner'];
$contact['private'] = $oldContact['private']; $contact['private'] = $oldContact['private'];
} }
else
{ $contact['owner'] = $user;
$contact['owner'] = $user;
}
if ($this->http_if_match) $contact['etag'] = self::etag2value($this->http_if_match); if ($this->http_if_match) $contact['etag'] = self::etag2value($this->http_if_match);