Hide the container for the license credentials when a skip is requested
authorAlexander Ebert <ebert@woltlab.com>
Fri, 14 Apr 2023 14:36:47 +0000 (16:36 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 17 Apr 2023 16:45:10 +0000 (18:45 +0200)
wcfsetup/install/files/lib/acp/form/FirstTimeSetupLicenseForm.class.php

index 403c3f84a58d041096a556c4db112469dbe0416c..325dac17bc34e717ba2b3b4e722c98607efdc332 100644 (file)
@@ -21,7 +21,6 @@ use wcf\system\form\builder\field\dependency\EmptyFormFieldDependency;
 use wcf\system\form\builder\field\TextFormField;
 use wcf\system\form\builder\field\validation\FormFieldValidationError;
 use wcf\system\form\builder\field\validation\FormFieldValidator;
-use wcf\system\form\builder\LanguageItemFormNode;
 use wcf\system\io\HttpFactory;
 use wcf\system\request\LinkHandler;
 use wcf\util\HeaderUtil;
@@ -106,6 +105,11 @@ final class FirstTimeSetupLicenseForm extends AbstractFormBuilderForm
                         ->description('wcf.acp.firstTimeSetup.license.noCredentialsConfirm.description'),
                 ]),
         ]);
+
+        $credentialsContainer->addDependency(
+            EmptyFormFieldDependency::create('noCredentialsConfirm')
+                ->fieldId('noCredentialsConfirm')
+        );
     }
 
     private function getLicenseData(string $licenseNo, string $serialNo): array