From 4e93c5beb78a297b65a850c53a91baad5e9d20de Mon Sep 17 00:00:00 2001 From: Gunnstein Lye <289744+glye@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:16:04 +0100 Subject: [PATCH] IBX-7021: Fixed fatal error in DownloadController Regression from IBEXA-SA-2023-005. For more details see https://issues.ibexa.co/browse/IBX-7021 and https://github.com/ezsystems/ezpublish-kernel/pull/3154 --- .../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; } }