From f579781d2c9c39a1b2204dabc6f914059803a907 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 9 Jun 2018 13:20:34 +0200 Subject: [PATCH] Add pip form fields before form is built See #2545 --- .../acp/form/DevtoolsProjectPipEntryAddForm.class.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); -- 2.20.1