Skip to content

Commit

Permalink
fixup! IBX-6773: Bookmarks for non-accessible contents cause exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarl committed Jun 27, 2024
1 parent f620af5 commit 2665578
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eZ/Publish/Core/Repository/BookmarkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use Exception;
use eZ\Publish\API\Repository\BookmarkService as BookmarkServiceInterface;
use eZ\Publish\API\Repository\Exceptions\BadStateException;
use eZ\Publish\API\Repository\Repository as RepositoryInterface;
use eZ\Publish\API\Repository\Values\Bookmark\BookmarkList;
use eZ\Publish\API\Repository\Values\Content\Location;
Expand Down Expand Up @@ -108,7 +109,7 @@ public function loadBookmarks(int $offset = 0, int $limit = 25): BookmarkList
->sliceBy($limit, $offset);

$result = $this->repository->getlocationService()->find($filter, []);
} catch (\eZ\Publish\API\Repository\Exceptions\BadStateException $e) {
} catch (BadStateException $e) {
return new BookmarkList();
}

Expand Down

0 comments on commit 2665578

Please sign in to comment.