Removed redirect after page creation
authorMarcel Werk <burntime@woltlab.com>
Fri, 24 Jun 2016 10:33:18 +0000 (12:33 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 24 Jun 2016 10:33:18 +0000 (12:33 +0200)
wcfsetup/install/files/lib/acp/form/PageAddForm.class.php

index c5dcc8c85279d4e58691004294b9ac302a238283..1e2f3ff205dbf568469eea742517fcf8d8738476 100644 (file)
@@ -448,9 +448,11 @@ class PageAddForm extends AbstractForm {
                // call saved event
                $this->saved();
                
-               // forward to page list
-               HeaderUtil::redirect(LinkHandler::getInstance()->getLink('PageList'));
-               exit;
+               // reset variables
+               $this->parentPageID = $this->isDisabled = $this->isLandingPage = 0;
+               $this->applicationPackageID = 1;
+               $this->name = '';
+               $this->customURL = $this->title = $this->content = $this->metaDescription = $this->metaKeywords = $this->boxIDs = $this->aclValues = [];
        }
        
        /**