From e2d1c9a85783d5ab46995952c8793b7c2430281e Mon Sep 17 00:00:00 2001 From: Vidar Langseid Date: Thu, 6 Jun 2024 15:17:32 +0200 Subject: [PATCH] fixup! fixup! IBX-6773: Bookmarks for non-accessible contents cause exception: Added BookmarkId sort clause --- .../SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/eZ/Publish/Core/Persistence/Legacy/Filter/SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php b/eZ/Publish/Core/Persistence/Legacy/Filter/SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php index 06b20d2f63..ac2c8ea4e0 100644 --- a/eZ/Publish/Core/Persistence/Legacy/Filter/SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php +++ b/eZ/Publish/Core/Persistence/Legacy/Filter/SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php @@ -25,6 +25,7 @@ public function buildQuery( FilteringSortClause $sortClause ): void { /** @var \eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause */ + $queryBuilder->addSelect('bookmark.id'); $queryBuilder->addOrderBy('bookmark.id', $sortClause->direction); } }