From 05ca8be53f8dc98ed3d038890b5000146f58760c Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 26 Jun 2024 10:38:43 +0200 Subject: [PATCH] Set array-key to the fileID --- .../system/form/builder/field/FileProcessorFormField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php index a35bf4fa20..ed6e4a8f6f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php @@ -123,7 +123,7 @@ final class FileProcessorFormField extends AbstractFormField if ($this->isSingleFileUpload()) { $file = new File($value); if ($file->fileID === $value) { - $this->files = [$file]; + $this->files = [$file->fileID => $file]; $fileIDs[] = $value; } else { $value = null; -- 2.20.1