Fixed template group not recognized during style update
authorAlexander Ebert <ebert@woltlab.com>
Mon, 23 Jan 2017 12:22:43 +0000 (13:22 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 23 Jan 2017 12:22:43 +0000 (13:22 +0100)
wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index 62a1d98a957bafc481fcc8f992505406427c10a7..c6ab9d76b4a147e43fad835f4930e43ec4927b40 100644 (file)
@@ -360,6 +360,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                        $templateGroupFolderName = '';
                        if ($style !== null && $style->templateGroupID) {
                                $templateGroupFolderName = (new TemplateGroup($style->templateGroupID))->templateGroupFolderName;
+                               $styleData['templateGroupID'] = $style->templateGroupID;
                        }
                        
                        if (empty($templateGroupFolderName)) {