Skip to content

Commit

Permalink
IBX-7021: Fixed fatal error in DownloadController
Browse files Browse the repository at this point in the history
Regression from IBEXA-SA-2023-005. For more details see https://issues.ibexa.co/browse/IBX-7021 and #3154
  • Loading branch information
glye authored Dec 22, 2023
1 parent 142152f commit 4e93c5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4e93c5b

Please sign in to comment.