Skip to content

Commit 52f62ef

Browse files
CarlSchwannickvergessen
authored andcommitted
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 e7741f8 commit 52f62ef

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
@@ -887,7 +887,7 @@ private function _getSharedWith(
887887

888888
if ($offset !== 0 || $limit !== -1) {
889889
// Order by id
890-
$qb->orderBy('id');
890+
$qb->orderBy('s.id');
891891
}
892892

893893
// Set limit and offset
@@ -960,7 +960,7 @@ private function _getSharedWith(
960960
->setFirstResult(0);
961961

962962
if ($offset !== 0 || $limit !== -1) {
963-
$qb->orderBy('id');
963+
$qb->orderBy('s.id');
964964
}
965965

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

0 commit comments

Comments
 (0)