From: Matthias Schmidt Date: Mon, 31 Dec 2012 16:46:24 +0000 (+0100) Subject: Reloads categories after category is created X-Git-Tag: 2.0.0_Beta_1~628 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cae0d6b9c42ffa3f1472816304ce9045ef96d5b;p=GitHub%2FWoltLab%2FWCF.git Reloads categories after category is created This way the new category is directly available in the parent category select list. --- diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php index 903221c6d3..b9e0ebe855 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php @@ -287,6 +287,7 @@ abstract class AbstractCategoryAddForm extends AbstractForm { // reload cache CategoryHandler::getInstance()->reloadCache(); + $this->readCategories(); // reset values $this->parentCategoryID = 0; @@ -338,7 +339,7 @@ abstract class AbstractCategoryAddForm extends AbstractForm { if ($this->categoryNodeList->getDepth() > $this->objectType->getProcessor()->getMaximumNestingLevel() - 1) { throw new UserInputException('parentCategoryID', 'invalid'); } - + break; } }