Skip to content

Commit 8b38337

Browse files
committed
Remove validation of the parent menu item during installation
1 parent cb96487 commit 8b38337

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use wcf\system\form\builder\container\IFormContainer;
88
use wcf\system\form\builder\field\dependency\ValueFormFieldDependency;
99
use wcf\system\form\builder\field\IconFormField;
10-
use wcf\system\form\builder\field\SingleSelectionFormField;
1110
use wcf\system\form\builder\field\TextFormField;
1211
use wcf\system\form\builder\field\validation\FormFieldValidationError;
1312
use wcf\system\form\builder\field\validation\FormFieldValidator;
@@ -41,6 +40,13 @@ protected function prepareImport(array $data)
4140
return $returnValue;
4241
}
4342

43+
#[\Override]
44+
protected function validateImport(array $data)
45+
{
46+
// The parent method checks whether the parent menu item exists.
47+
// Since menu items can now also be added at runtime, this check is no longer reliable.
48+
}
49+
4450
/**
4551
* @inheritDoc
4652
*/

0 commit comments

Comments
 (0)