Allow updating of page handler
authorAlexander Ebert <ebert@woltlab.com>
Wed, 19 Oct 2016 10:24:39 +0000 (12:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 19 Oct 2016 10:24:39 +0000 (12:24 +0200)
wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php

index ef0145e799d6d5886eaca1dcec3230350d0d94c8..db2c18ab55b5c96bafc1a368721eebc1ea3469d8 100644 (file)
@@ -252,9 +252,12 @@ class PagePackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
                
                /** @var Page $page */
                if (!empty($row)) {
-                       // allow only updating of controller, everything else would overwrite user modifications
+                       // allow only updating of controller and handler, everything else would overwrite user modifications
                        if (!empty($data['controller'])) {
-                               $page = parent::import($row, ['controller' => $data['controller']]);
+                               $page = parent::import($row, [
+                                       'controller' => $data['controller'],
+                                       'handler' => $data['handler']
+                               ]);
                        }
                        else {
                                $baseClass = call_user_func([$this->className, 'getBaseClass']);