From: Matthias Schmidt Date: Mon, 26 Apr 2021 13:52:50 +0000 (+0200) Subject: Fix variable name in `DevtoolsProjectOptionalPackagesFormField::validate()` X-Git-Tag: 5.4.0_Alpha_1~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4354e098ed843b77795d6a267809a0962ba3d72a;p=GitHub%2FWoltLab%2FWCF.git Fix variable name in `DevtoolsProjectOptionalPackagesFormField::validate()` See #4151 --- 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); } /**