From 38f90e6cfdcc6884d1d7f73fd28e6c8a9c9b35d8 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 14 Mar 2018 17:01:58 +0100 Subject: [PATCH] Fix parameter keys of acl and tag form fields See #2509 --- .../files/lib/system/form/builder/field/AclFormField.class.php | 2 +- .../files/lib/system/form/builder/field/TagFormField.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/AclFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/AclFormField.class.php index c4299eb7ea..756b4a2823 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/AclFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/AclFormField.class.php @@ -132,7 +132,7 @@ class AclFormField extends AbstractFormField implements IObjectTypeFormField { parent::populate(); $this->getDocument()->getDataHandler()->add(new CustomFormFieldDataProcessor('acl', function(IFormDocument $document, array $parameters) { - $parameters['aclObjectTypeID'] = $this->getObjectType()->objectTypeID; + $parameters[$this->getId() . '_aclObjectTypeID'] = $this->getObjectType()->objectTypeID; return $parameters; })); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TagFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TagFormField.class.php index 197ffcba31..1626152d3b 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TagFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TagFormField.class.php @@ -88,7 +88,7 @@ class TagFormField extends AbstractFormField implements IObjectTypeFormField { $this->getDocument()->getDataHandler()->add(new CustomFormFieldDataProcessor('acl', function(IFormDocument $document, array $parameters) { if ($this->getValue() !== null && !empty($this->getValue())) { - $parameters['tags'] = $this->getValue(); + $parameters[$this->getId()] = $this->getValue(); } return $parameters; -- 2.20.1