mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
* 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:
parent
2943b678bd
commit
9777a04dad
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user