* CardDAV/Addressbook: fix can NOT create new entries on a minimal (non-compat) install

Caused by version-check agains not installed phpgwapi fails and causes new name-parts of url starting with a number to clash with existing contacts and therefore give a "412 Precondition failed"
This commit is contained in:
Ralf Becker 2018-03-23 19:58:35 +01:00
parent a0ac4ed927
commit 9c377e1f26

View File

@ -74,7 +74,7 @@ class addressbook_groupdav extends Api\CalDAV\Handler
// since 1.9.007 we allow clients to specify the URL when creating a new contact, as specified by CardDAV
// LDAP does NOT have a carddav_name attribute --> stick with id mapped to LDAP attribute uid
if (version_compare($GLOBALS['egw_info']['apps']['phpgwapi']['version'], '1.9.007', '<') ||
if (version_compare($GLOBALS['egw_info']['apps']['api']['version'], '1.9.007', '<') ||
$this->bo->contact_repository != 'sql' ||
$this->bo->account_repository != 'sql' && strpos($_SERVER['REQUEST_URI'].'/','/addressbook-accounts/') !== false)
{