From 598fc4165a00186b3fe0109d511183bb0d4aec7c Mon Sep 17 00:00:00 2001 From: Vidar Langseid Date: Thu, 30 May 2024 14:37:31 +0200 Subject: [PATCH] fixup! IBX-6773: Bookmarks for non-accessible contents cause exception --- eZ/Publish/Core/Repository/BookmarkService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eZ/Publish/Core/Repository/BookmarkService.php b/eZ/Publish/Core/Repository/BookmarkService.php index d720a1b86b..266d0d8fa5 100644 --- a/eZ/Publish/Core/Repository/BookmarkService.php +++ b/eZ/Publish/Core/Repository/BookmarkService.php @@ -104,7 +104,7 @@ public function loadBookmarks(int $offset = 0, int $limit = 25): BookmarkList try { $filter ->withCriterion(new Criterion\Bookmark($currentUserId)) - ->withSortClause(new SortClause\DatePublished(Query::SORT_ASC)) + ->withSortClause(new SortClause\DatePublished(Query::SORT_DESC)) ->sliceBy($limit, $offset); $result = $this->repository->getlocationService()->find($filter, []);