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>
This commit is contained in:
Carl Schwan 2026-04-21 14:33:49 +02:00 committed by backportbot[bot]
parent e7741f81dd
commit 52f62effa8

View file

@ -887,7 +887,7 @@ class DefaultShareProvider implements
if ($offset !== 0 || $limit !== -1) {
// Order by id
$qb->orderBy('id');
$qb->orderBy('s.id');
}
// Set limit and offset
@ -960,7 +960,7 @@ class DefaultShareProvider implements
->setFirstResult(0);
if ($offset !== 0 || $limit !== -1) {
$qb->orderBy('id');
$qb->orderBy('s.id');
}
if ($limit !== -1) {