Skip to content

Commit 71c9992

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: fix initial addressbook sync skipping items due to ordering
fix: fix initial addressbook sync skipping items due to ordering Signed-off-by: Robin Appelman <robin@icewind.nl> [skip ci]
1 parent d3d1bb4 commit 71c9992

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
@@ -980,7 +980,8 @@ public function getChangesForAddressBook($addressBookId, $syncToken, $syncLevel,
980980
->from('cards')
981981
->where(
982982
$qb->expr()->eq('addressbookid', $qb->createNamedParameter($addressBookId))
983-
);
983+
)
984+
->orderBy('id');
984985
// No synctoken supplied, this is the initial sync.
985986
$qb->setMaxResults($limit);
986987
$stmt = $qb->executeQuery();

0 commit comments

Comments
 (0)