Skip to content

Commit

Permalink
[BUGFIX] Change select field for detect metdata
Browse files Browse the repository at this point in the history
With an older database it can happen that the UIDs
of sys_file and sys_file_metadata are not in sync.
Therefore you should check for the `file` field
  • Loading branch information
NarkNiro authored and calien666 committed Jun 6, 2023
1 parent 1bb987f commit 0d567e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Hooks/FileReferenceRequiredFieldsHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private function detectSysFileMetadataRecord(mixed $field): ?array
['*'],
'sys_file_metadata',
[
'uid' => $id,
'file' => $id,
]
);
$metaData = $result->fetchAssociative();
Expand Down

0 comments on commit 0d567e2

Please sign in to comment.