From: Matthias Schmidt Date: Sun, 29 Sep 2019 14:36:30 +0000 (+0200) Subject: Fix `TMultipleFormField` if multiples are used X-Git-Tag: 5.2.0_Beta_2~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9017d1720ffc322c9a3d87711a86d3d3c42746d8;p=GitHub%2FWoltLab%2FWCF.git Fix `TMultipleFormField` if multiples are used --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php index 65ad42b85e..1c8965de3f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php @@ -156,7 +156,7 @@ trait TMultipleFormField { parent::populate(); if ($this->allowsMultiple()) { - $this->getDocument()->getDataHandler()->add(new CustomFormDataProcessor('multiple', function(IFormDocument $document, array $parameters) { + $this->getDocument()->getDataHandler()->addProcessor(new CustomFormDataProcessor('multiple', function(IFormDocument $document, array $parameters) { if ($this->checkDependencies() && !empty($this->getValue())) { $parameters[$this->getObjectProperty()] = $this->getValue(); }