diff --git a/eZ/Publish/Core/MVC/Symfony/Controller/Content/DownloadController.php b/eZ/Publish/Core/MVC/Symfony/Controller/Content/DownloadController.php index 93bd2c87a7..944b42a0f8 100644 --- a/eZ/Publish/Core/MVC/Symfony/Controller/Content/DownloadController.php +++ b/eZ/Publish/Core/MVC/Symfony/Controller/Content/DownloadController.php @@ -63,7 +63,7 @@ public function downloadBinaryFileByIdAction(Request $request, int $contentId, i protected function findFieldInContent(int $fieldId, Content $content): Field { foreach ($content->getFields() as $field) { - if ($field->getId() === $fieldId) { + if ($field->id === $fieldId) { return $field; } }