Fixed default value reset
authorMarcel Werk <burntime@woltlab.com>
Mon, 16 May 2016 09:48:32 +0000 (11:48 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 16 May 2016 09:51:44 +0000 (11:51 +0200)
wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php

index f8b74b6477ac42cbeb6e758afff27d3adc8d29c5..46206fee88f7453a3704f16efd7921528e47c474 100644 (file)
@@ -389,7 +389,7 @@ class BoxAddForm extends AbstractForm {
                        $data['objectTypeID'] = $this->boxControllerID;
                }
                
-               $this->objectAction = new BoxAction([], 'create', ['data' => array_merge($this->additionalFields, $data), 'content' => $content, 'pageIDs' => $this->pageIDs ]);
+               $this->objectAction = new BoxAction([], 'create', ['data' => array_merge($this->additionalFields, $data), 'content' => $content, 'pageIDs' => $this->pageIDs]);
                $box = $this->objectAction->executeAction()['returnValues'];
                
                // set generic box identifier
@@ -413,7 +413,7 @@ class BoxAddForm extends AbstractForm {
                $this->boxType = $this->position = $this->cssClassName = $this->name = '';
                $this->showOrder = $this->boxControllerID = 0;
                $this->visibleEverywhere = $this->showHeader = 1;
-               $this->title = $this->content = $this->images = $this->imageID = [];
+               $this->title = $this->content = $this->images = $this->imageID = $this->pageIDs = [];
                $this->boxController = null;
        }