From 3bc5f14718e60b82584a51a0812e28c94b6d38ae Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 16 May 2016 11:48:32 +0200 Subject: [PATCH] Fixed default value reset --- wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1