From 985ffe04ed0b802c634728101a9153d15ea5a79f Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 20 Sep 2016 18:14:55 +0200 Subject: [PATCH] Properly reset box position field after box creation --- wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php index d21e0dc3e4..eed892230e 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php @@ -500,7 +500,8 @@ class BoxAddForm extends AbstractForm { WCF::getTPL()->assign('success', true); // reset variables - $this->position = $this->cssClassName = $this->name = ''; + $this->cssClassName = $this->name = ''; + $this->position = 'contentTop'; $this->showOrder = $this->boxControllerID = 0; $this->visibleEverywhere = $this->showHeader = 1; $this->title = $this->content = $this->images = $this->imageID = $this->pageIDs = $this->aclValues = []; -- 2.20.1