Skip to content

Commit 36bbc1b

Browse files
fix: use correct variable for order by
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 914ab88 commit 36bbc1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Share20/DefaultShareProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ private function _getSharedWith(
894894

895895
if ($offset !== 0 || $limit !== -1) {
896896
// Order by id
897-
$qb->orderBy('id');
897+
$qb->orderBy('s.id');
898898
}
899899

900900
// Set limit and offset
@@ -967,7 +967,7 @@ private function _getSharedWith(
967967
->setFirstResult(0);
968968

969969
if ($offset !== 0 || $limit !== -1) {
970-
$qb->orderBy('id');
970+
$qb->orderBy('s.id');
971971
}
972972

973973
if ($limit !== -1) {

0 commit comments

Comments
 (0)