From 6d74503ab52fc1da9f0282b884877f90712f20fd Mon Sep 17 00:00:00 2001 From: Fabii547 Date: Sun, 25 Aug 2019 15:10:09 +0200 Subject: [PATCH] Make subclasses of ItemListFormField compatible with IMultipleFormField (#3055) --- .../system/form/builder/field/option/OptionFormField.class.php | 2 ++ .../field/user/group/option/UserGroupOptionFormField.class.php | 2 ++ .../plugin/ObjectTypePackageInstallationPlugin.class.php | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/option/OptionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/option/OptionFormField.class.php index a5a1957232..052b82ea66 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/option/OptionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/option/OptionFormField.class.php @@ -28,6 +28,8 @@ class OptionFormField extends ItemListFormField implements IPackagesFormField { * Creates a new instance of `OptionsFormField`. */ public function __construct() { + parent::__construct(); + $this->label('wcf.form.field.option'); } diff --git a/wcfsetup/install/files/lib/system/form/builder/field/user/group/option/UserGroupOptionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/user/group/option/UserGroupOptionFormField.class.php index 87d0d6c985..4d65667ba4 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/user/group/option/UserGroupOptionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/user/group/option/UserGroupOptionFormField.class.php @@ -28,6 +28,8 @@ class UserGroupOptionFormField extends ItemListFormField implements IPackagesFor * Creates a new instance of `OptionsFormField`. */ public function __construct() { + parent::__construct(); + $this->label('wcf.form.field.userGroupOption'); } diff --git a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php index e3c6137b9c..97d19c0772 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php @@ -485,7 +485,7 @@ class ObjectTypePackageInstallationPlugin extends AbstractXMLPackageInstallation ->objectProperty('disallowedBBCodesPermission') ->label('wcf.acp.pip.objectType.com.woltlab.wcf.message.disallowedBBCodesPermission') ->description('wcf.acp.pip.objectType.com.woltlab.wcf.message.disallowedBBCodesPermission.description') - ->maximum(1) + ->multiple(false) ->addValidator(new FormFieldValidator('optionType', function(UserGroupOptionFormField $formField) { $value = $formField->getValue(); if (empty($value)) return; -- 2.20.1