From 1c0e9f5bd4fd8a1e7df024bc6dc25b91792559ee Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 15 Aug 2018 09:39:26 +0200 Subject: [PATCH] Fix missing redirects Some forms were missing the parent::onSuccess() call. --- application/forms/BpUploadForm.php | 2 ++ application/forms/ProcessForm.php | 2 ++ application/forms/SimulationForm.php | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/application/forms/BpUploadForm.php b/application/forms/BpUploadForm.php index a46d729..2b1b0a2 100644 --- a/application/forms/BpUploadForm.php +++ b/application/forms/BpUploadForm.php @@ -194,5 +194,7 @@ class BpUploadForm extends BpConfigBaseForm $this->storage->storeProcess($config); Notification::success(sprintf('Process %s has been stored', $name)); + + parent::onSuccess(); } } diff --git a/application/forms/ProcessForm.php b/application/forms/ProcessForm.php index 2a4fb8b..6a173ce 100644 --- a/application/forms/ProcessForm.php +++ b/application/forms/ProcessForm.php @@ -198,5 +198,7 @@ class ProcessForm extends QuickForm ) ); } + + parent::onSuccess(); } } diff --git a/application/forms/SimulationForm.php b/application/forms/SimulationForm.php index 23a4313..445a992 100644 --- a/application/forms/SimulationForm.php +++ b/application/forms/SimulationForm.php @@ -111,7 +111,8 @@ class SimulationForm extends QuickForm $this->notifySuccess($this->translate('Simulation has been removed')); } } - $this->redirectOnSuccess(); + + parent::onSuccess(); } /**