From 8dcecd2c4c23f636cb1b25944dbbeafb6d8dbb47 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 31 Mar 2019 15:31:29 +0200 Subject: [PATCH] Use `getObjectProperty()` instead of `getId()` in `UplodFormField` See #2509 See #2825 --- .../lib/system/form/builder/field/UploadFormField.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php index ffba0d462f..821ea4495d 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php @@ -235,8 +235,8 @@ class UploadFormField extends AbstractFormField { parent::populate(); $this->getDocument()->getDataHandler()->add(new CustomFormFieldDataProcessor('upload', function(IFormDocument $document, array $parameters) { - $parameters[$this->getId()] = $this->getValue(); - $parameters[$this->getId() . '_removedFiles'] = $this->getRemovedFiles(true); + $parameters[$this->getObjectProperty()] = $this->getValue(); + $parameters[$this->getObjectProperty() . '_removedFiles'] = $this->getRemovedFiles(true); return $parameters; })); -- 2.20.1