From: Matthias Schmidt Date: Wed, 20 Mar 2019 08:30:21 +0000 (+0100) Subject: Show success message when adding/editing PIP entries via GUI X-Git-Tag: 5.2.0_Alpha_1~202 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=700e74caf8108b0f0b31afca2cdf9a41a40a55e5;p=GitHub%2FWoltLab%2FWCF.git Show success message when adding/editing PIP entries via GUI 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 1aa2f2379e..874ffe024e 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php @@ -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); } diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php index 6c8605e712..38d2a78fbd 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php @@ -104,6 +104,8 @@ class DevtoolsProjectPipEntryEditForm extends DevtoolsProjectPipEntryAddForm { */ public function saved() { AbstractForm::saved(); + + $this->form->showSuccessMessage(true); } /**