fix still not working sync-report for accounts addressbook

turns out Microsoft AD also returns a "Virtual List View error" if sorting by standard LDAP (modify|created)timestamp, have to use when(Changed|Created) instead, as for filter
This commit is contained in:
Ralf Becker 2021-12-16 20:07:57 +02:00
parent 5a2eb5b987
commit c6f447f49c

View File

@ -1129,6 +1129,11 @@ class Ldap
{
if (($attr = array_search($matches[2], $this->timestamps2egw)))
{
// Microsoft AD can NOT VLV sort by (modify|create)TimeStamp, we have to use when(Created|Changed) attribute
if (static::class === Ads::class)
{
$attr = $attr === 'modifytimestamp' ? 'whenChanged' : 'whenCreated';
}
$values[] = [
'attr' => $attr,
// use default match 'oid' => '',