Fix building devtools project add form twice after saving
authorMatthias Schmidt <gravatronics@live.com>
Mon, 18 Mar 2019 15:42:51 +0000 (16:42 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 18 Mar 2019 15:42:51 +0000 (16:42 +0100)
The form is already re-built in `AbstractFormBuilderForm::saved()`.

See #2772

wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php

index 09a2bb8e4dbe4cca845473bc132789fafe656b4e..766c480c80e2dd92ef3ce9dfca4f47fa42d1857e 100644 (file)
@@ -955,11 +955,6 @@ class DevtoolsProjectAddForm extends AbstractFormBuilderForm {
                
                $this->saved();
                
-               // re-build form after having created a new object
-               if ($this->formAction === 'create') {
-                       $this->buildForm();
-               }
-               
                WCF::getTPL()->assign('success', true);
        }
 }