forked from extern/egroupware
* CardDAV/ActiveDirectory: fix empty account-addressbook if sync-collection-report is used
Microsoft AD can NOT filter by (modify|create)TimeStamp, we have to use when(Created|Changed) attribute
This commit is contained in:
parent
2545c8fde1
commit
ec4edf84d8
@ -798,6 +798,11 @@ class Ldap
|
|||||||
if (is_int($key) && preg_match('/^(contact_)?(modified|created)([<=>]+)([0-9]+)$/', $value, $matches) &&
|
if (is_int($key) && preg_match('/^(contact_)?(modified|created)([<=>]+)([0-9]+)$/', $value, $matches) &&
|
||||||
($attr = array_search($matches[2], $this->timestamps2egw)))
|
($attr = array_search($matches[2], $this->timestamps2egw)))
|
||||||
{
|
{
|
||||||
|
// Microsoft AD can NOT filter by (modify|create)TimeStamp, we have to use when(Created|Changed) attribute
|
||||||
|
if (static::class === Ads::class)
|
||||||
|
{
|
||||||
|
$attr = $attr === 'modifytimestamp' ? 'whenChanged' : 'whenCreated';
|
||||||
|
}
|
||||||
$append = '';
|
$append = '';
|
||||||
if ($matches[3] == '>')
|
if ($matches[3] == '>')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user