Fix `TMultipleFormField` if multiples are used
authorMatthias Schmidt <gravatronics@live.com>
Sun, 29 Sep 2019 14:36:30 +0000 (16:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 29 Sep 2019 14:36:30 +0000 (16:36 +0200)
wcfsetup/install/files/lib/system/form/builder/field/TMultipleFormField.class.php

index 65ad42b85e15bdad24240273fd0b8754636383f8..1c8965de3fe8078a4db58555ae3ecf126e30ae34 100644 (file)
@@ -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();
                                }