Show success message when adding/editing PIP entries via GUI
authorMatthias Schmidt <gravatronics@live.com>
Wed, 20 Mar 2019 08:30:21 +0000 (09:30 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 20 Mar 2019 08:30:21 +0000 (09:30 +0100)
See #2545

wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php
wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php

index 1aa2f2379e4f373dbfd40280e6569190e2850005..874ffe024e9d700b99bd1f597d5a4d573f7f5c61 100644 (file)
@@ -144,11 +144,6 @@ class DevtoolsProjectPipEntryAddForm extends AbstractFormBuilderForm {
                
                $this->saved();
                
-               // re-build form after having created a new object
-               if ($this->formAction === 'create') {
-                       $this->buildForm();
-               }
-               
                WCF::getTPL()->assign('success', true);
        }
        
index 6c8605e712558dfe127239b19e60f8e6c0bde456..38d2a78fbd01a7226533c881050917f4875feaf0 100644 (file)
@@ -104,6 +104,8 @@ class DevtoolsProjectPipEntryEditForm extends DevtoolsProjectPipEntryAddForm {
         */
        public function saved() {
                AbstractForm::saved();
+               
+               $this->form->showSuccessMessage(true);
        }
        
        /**