Skip to content

Commit

Permalink
fix: resolve error with attachments in finisher
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln committed Nov 13, 2024
1 parent 05a55a7 commit a6220ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Finishers/LogFinisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ protected function executeInternal()
$files = is_array($elementValue) ? $elementValue : [$elementValue];

foreach ($files as $file) {
if (!$file instanceof FileReference) {
if ($file instanceof FileReference) {
// Process file path from FileReference
$filePath = $elementValue->getOriginalResource()->getOriginalFile()->getPublicUrl();
$filePath = $file->getOriginalResource()->getOriginalFile()->getPublicUrl();
$formData[$element->getIdentifier()][] = $filePath;
}
}
Expand Down

0 comments on commit a6220ad

Please sign in to comment.