Properly reset box position field after box creation
authorMatthias Schmidt <gravatronics@live.com>
Tue, 20 Sep 2016 16:14:55 +0000 (18:14 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 20 Sep 2016 16:14:55 +0000 (18:14 +0200)
wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php

index d21e0dc3e4b4ccd9d7ff751dc8538b5d649d7bb2..eed892230eee39bac70f0a90e615148ffd705fcf 100644 (file)
@@ -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 = [];