Reloads categories after category is created
authorMatthias Schmidt <gravatronics@live.com>
Mon, 31 Dec 2012 16:46:24 +0000 (17:46 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 31 Dec 2012 16:46:24 +0000 (17:46 +0100)
This way the new category is directly available in the parent category select list.

wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php

index 903221c6d390ab9f6a4da50b2974ee51494c11c3..b9e0ebe855c4d70361132d5afd444f0e3feb8193 100644 (file)
@@ -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;
                                        }
                                }