From: Matthias Schmidt Date: Wed, 14 Mar 2018 16:01:58 +0000 (+0100) Subject: Fix parameter keys of acl and tag form fields X-Git-Tag: 5.2.0_Alpha_1~798 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38f90e6cfdcc6884d1d7f73fd28e6c8a9c9b35d8;p=GitHub%2FWoltLab%2FWCF.git Fix parameter keys of acl and tag form fields See #2509 --- 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;