From: Marcel Werk Date: Mon, 16 May 2016 09:48:32 +0000 (+0200) Subject: Fixed default value reset X-Git-Tag: 3.0.0_Beta_1~1720 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3bc5f14718e60b82584a51a0812e28c94b6d38ae;p=GitHub%2FWoltLab%2FWCF.git Fixed default value reset --- diff --git a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php index f8b74b6477..46206fee88 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php @@ -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; }