Skip to content

Commit d470ad1

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 9ac556c commit d470ad1

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
@@ -910,7 +910,7 @@ private function _getSharedWith(
910910

911911
if ($offset !== 0 || $limit !== -1) {
912912
// Order by id
913-
$qb->orderBy('id');
913+
$qb->orderBy('s.id');
914914
}
915915

916916
// Set limit and offset
@@ -983,7 +983,7 @@ private function _getSharedWith(
983983
->setFirstResult(0);
984984

985985
if ($offset !== 0 || $limit !== -1) {
986-
$qb->orderBy('id');
986+
$qb->orderBy('s.id');
987987
}
988988

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

0 commit comments

Comments
 (0)