From 4354e098ed843b77795d6a267809a0962ba3d72a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 26 Apr 2021 15:52:50 +0200 Subject: [PATCH] Fix variable name in `DevtoolsProjectOptionalPackagesFormField::validate()` See #4151 --- .../DevtoolsProjectOptionalPackagesFormField.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectOptionalPackagesFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectOptionalPackagesFormField.class.php index bd514b1023..47c5d7e541 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectOptionalPackagesFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectOptionalPackagesFormField.class.php @@ -51,7 +51,7 @@ class DevtoolsProjectOptionalPackagesFormField extends AbstractFormField { // everything is already validated by JavaScript thus we skip // reporting specific errors and simply remove manipulated values - $excludedPackages = []; + $optionalPackages = []; $packageIdentifiers = []; foreach ($this->getValue() as $package) { // ensure that all relevant elements are present @@ -67,10 +67,10 @@ class DevtoolsProjectOptionalPackagesFormField extends AbstractFormField continue; } - $excludedPackages[] = $package; + $optionalPackages[] = $package; } - $this->value($excludedPackages); + $this->value($optionalPackages); } /** -- 2.20.1