From 8a1c8b01fc86f82b48c90fb5fff5b5007f2491ec Mon Sep 17 00:00:00 2001 From: David Mellen Date: Wed, 24 Apr 2024 14:14:25 +0200 Subject: [PATCH 1/2] ci: update semantic-workflow-action --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 74bd219..6deae2b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,6 +9,6 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: remindgmbh/semantic-release-action@v2.1.1 + - uses: remindgmbh/semantic-release-action@v2.2.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} From 91573f7680bf4e175c547f78edcc444d00ef44de Mon Sep 17 00:00:00 2001 From: David Mellen Date: Thu, 25 Apr 2024 10:33:50 +0200 Subject: [PATCH 2/2] fix: check for flat objects in files processor --- Classes/DataProcessing/FilesProcessor.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Classes/DataProcessing/FilesProcessor.php b/Classes/DataProcessing/FilesProcessor.php index 2a61302..df60f74 100644 --- a/Classes/DataProcessing/FilesProcessor.php +++ b/Classes/DataProcessing/FilesProcessor.php @@ -12,9 +12,14 @@ protected function processFiles(array $properties = []): ?array { $data = parent::processFiles($properties); if ($data) { - foreach ($data as &$processedFile) { - unset($processedFile['properties']['crop']); - unset($processedFile['properties']['cropDimensions']); + if ((bool) ($properties['returnFlattenObject'] ?? false)) { + unset($data['properties']['crop']); + unset($data['properties']['cropDimensions']); + } else { + foreach ($data as &$processedFile) { + unset($processedFile['properties']['crop']); + unset($processedFile['properties']['cropDimensions']); + } } } return $data;