Prevent changes to the showOrder setting of system boxes during an update
authorMarcel Werk <burntime@woltlab.com>
Wed, 12 Aug 2020 15:51:25 +0000 (17:51 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 12 Aug 2020 15:51:25 +0000 (17:51 +0200)
wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php

index e5a4d84e55353b7692b05de004971b12b51d1efd..31a3e9db8fab3b3130b41f654d3e66d1aed77e80 100644 (file)
@@ -292,6 +292,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
                        if (!empty($row) && $row['boxType'] === 'system') {
                                unset($data['visibleEverywhere']);
                                unset($this->visibilityExceptions[$data['identifier']]);
+                               unset($data['showOrder']);
                        }
                        
                        $box = parent::import($row, $data);