* CardDAV: photo was not saved/changed in PUT requests

This commit is contained in:
Ralf Becker 2018-08-24 13:54:57 +02:00
parent 786b6dc2a6
commit 13941bb0e6

View File

@ -672,6 +672,7 @@ class addressbook_groupdav extends Api\CalDAV\Handler
} }
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);
$contact['photo_unchanged'] = false; // photo needs saving
if (!($save_ok = $is_group ? $this->save_group($contact, $oldContact) : $this->bo->save($contact))) if (!($save_ok = $is_group ? $this->save_group($contact, $oldContact) : $this->bo->save($contact)))
{ {
if ($this->debug) error_log(__METHOD__."(,$id) save(".array2string($contact).") failed, Ok=$save_ok"); if ($this->debug) error_log(__METHOD__."(,$id) save(".array2string($contact).") failed, Ok=$save_ok");