diff --git a/src/Dependency/Controller/CollectionController.php b/src/Dependency/Controller/CollectionController.php index d05b3b59a..749449bed 100644 --- a/src/Dependency/Controller/CollectionController.php +++ b/src/Dependency/Controller/CollectionController.php @@ -84,15 +84,15 @@ public function __construct( #[UnprocessableContentResponse] public function getDependencies(#[MapQueryString] DependencyParameters $parameters): JsonResponse { - $result = $this->hydratorService->getDependencies( + $collection = $this->hydratorService->getDependencies( $parameters, $this->securityService->getCurrentUser() ); return $this->getPaginatedCollection( $this->serializer, - $result->getItems(), - $result->getTotalItems(), + $collection->getItems(), + $collection->getTotalItems(), ); } }