* CardDAV: fixed sometimes not working creation of new contacts from the device, if accounts are stored in LDAP

not sure why I used $this->bo->account_repository != "ldap", it makes no sense, as we specify the column explicitly, no idea if CardDAV works for an addressbook in LDAP, but now it works for accounts in LDAP too
This commit is contained in:
Ralf Becker 2012-01-20 06:44:40 +00:00
parent 7f866bdf8e
commit 7f14a2a196

View File

@ -92,8 +92,7 @@ class addressbook_groupdav extends groupdav_handler
$this->bo = new addressbook_bo();
// since 1.9.007 we allow clients to specify the URL when creating a new contact, as specified by CardDAV
if ($this->bo->account_repository != 'ldap' &&
version_compare($GLOBALS['egw_info']['apps']['phpgwapi']['version'], '1.9.007', '>='))
if (version_compare($GLOBALS['egw_info']['apps']['phpgwapi']['version'], '1.9.007', '>='))
{
groupdav_handler::$path_attr = 'carddav_name';
groupdav_handler::$path_extension = '';