From: Matthias Schmidt Date: Sat, 9 Jun 2018 11:20:34 +0000 (+0200) Subject: Add pip form fields before form is built X-Git-Tag: 5.2.0_Alpha_1~726 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f579781d2c9c39a1b2204dabc6f914059803a907;p=GitHub%2FWoltLab%2FWCF.git Add pip form fields before form is built See #2545 --- diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php index e3e994be90..23aa2f291b 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php @@ -95,12 +95,10 @@ class DevtoolsProjectPipEntryAddForm extends AbstractFormBuilderForm { /** * @inheritDoc */ - public function readData() { - // we have to do it here so that the pip object is available to - // add the pip-specific form fields - $this->addPipFormFields(); + public function createForm() { + parent::createForm(); - parent::readData(); + $this->addPipFormFields(); } /** @@ -130,7 +128,6 @@ class DevtoolsProjectPipEntryAddForm extends AbstractFormBuilderForm { // re-build form after having created a new object if ($this->formAction === 'create') { $this->buildForm(); - $this->addPipFormFields(); } WCF::getTPL()->assign('success', true);