From 3aef3f6e8a8b64b43f52e7fc648ae79c7eb392fa Mon Sep 17 00:00:00 2001 From: Mathias Brodala Date: Thu, 5 Sep 2024 16:48:06 +0200 Subject: [PATCH] [FEATURE] Index legacy file uploads by field name This allows e.g. grouping legacy uploads by their related field name. --- Classes/Controller/ApplicationController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Controller/ApplicationController.php b/Classes/Controller/ApplicationController.php index 54fa571..b86b13e 100644 --- a/Classes/Controller/ApplicationController.php +++ b/Classes/Controller/ApplicationController.php @@ -406,10 +406,10 @@ public function createAction(Application $newApplication, Posting $posting = nul switch ($uploadMode) { case self::UPLOAD_MODE_LEGACY: - $legacyUploadfiles[] = $this->processFiles($newApplication, $arguments['cv'], 'cv', $fileStorage, 'cv_'); - $legacyUploadfiles[] = $this->processFiles($newApplication, $arguments['cover_letter'], 'cover_letter', $fileStorage, 'cover_letter_'); - $legacyUploadfiles[] = $this->processFiles($newApplication, $arguments['testimonials'], 'testimonials', $fileStorage, 'testimonials_'); - $legacyUploadfiles[] = $this->processFiles($newApplication, $arguments['other_files'], 'other_files', $fileStorage, 'other_files_'); + $legacyUploadfiles['cv'] = $this->processFiles($newApplication, $arguments['cv'], 'cv', $fileStorage, 'cv_'); + $legacyUploadfiles['cover_letter'] = $this->processFiles($newApplication, $arguments['cover_letter'], 'cover_letter', $fileStorage, 'cover_letter_'); + $legacyUploadfiles['testimonials'] = $this->processFiles($newApplication, $arguments['testimonials'], 'testimonials', $fileStorage, 'testimonials_'); + $legacyUploadfiles['other_files'] = $this->processFiles($newApplication, $arguments['other_files'], 'other_files', $fileStorage, 'other_files_'); break; case self::UPLOAD_MODE_FILES: $multiUploadFiles = $this->processFiles($newApplication, $arguments['files'], 'files', $fileStorage);