Skip to content

Commit

Permalink
Fix fatal error in DownloadController
Browse files Browse the repository at this point in the history
Regression from IBEXA-SA-2023-005
  • Loading branch information
glye authored Nov 9, 2023
1 parent 142152f commit aa64bf9
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 aa64bf9

Please sign in to comment.