From aa64bf95dfba5c7432a4cd8ab656baa0884a96c1 Mon Sep 17 00:00:00 2001 From: Gunnstein Lye <289744+glye@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:05:48 +0100 Subject: [PATCH] Fix fatal error in DownloadController Regression from IBEXA-SA-2023-005 --- .../Core/MVC/Symfony/Controller/Content/DownloadController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }