Skip to content

Commit df76c9f

Browse files
committed
fix: fix initial addressbook sync skipping items due to ordering
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent fc11eef commit df76c9f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/dav/lib/CardDAV/CardDavBackend.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,8 @@ public function getChangesForAddressBook($addressBookId, $syncToken, $syncLevel,
979979
->from('cards')
980980
->where(
981981
$qb->expr()->eq('addressbookid', $qb->createNamedParameter($addressBookId))
982-
);
982+
)
983+
->orderBy('id');
983984
// No synctoken supplied, this is the initial sync.
984985
$qb->setMaxResults($limit);
985986
$stmt = $qb->executeQuery();

0 commit comments

Comments
 (0)