From a9f7eedbcfe19673a1916f9a9bb3d440b119dee7 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 14 Aug 2018 19:46:06 +0200 Subject: [PATCH] Add alternative object action name `AbstractFormBuilderForm` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … to support additional action names. See #2509 --- .../lib/form/AbstractFormBuilderForm.class.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php b/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php index 6843cfaef7..bd314564a5 100644 --- a/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php @@ -1,5 +1,6 @@ objectAction = new $this->objectActionClass(array_filter([$this->formObject]), $this->formAction, $this->form->getData()); + /** @var AbstractDatabaseObjectAction objectAction */ + $this->objectAction = new $this->objectActionClass( + array_filter([$this->formObject]), + $this->objectActionName ?: $this->formAction, + $this->form->getData() + ); $this->objectAction->executeAction(); $this->saved(); -- 2.20.1