Removed update of the disabled state during updates
authorMarcel Werk <burntime@woltlab.com>
Mon, 5 Dec 2016 11:41:37 +0000 (12:41 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 5 Dec 2016 11:41:46 +0000 (12:41 +0100)
wcfsetup/install/files/lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php

index 35e40cf0c29c7a445243dbf4bb17e845ad5ee170..1fa82c87de62ebd3aae64369b846fd2e9148be98 100644 (file)
@@ -119,7 +119,6 @@ class UserOptionPackageInstallationPlugin extends AbstractOptionPackageInstallat
                        'outputClass' => $outputClass,
                        'searchable' => $searchable,
                        'showOrder' => $showOrder,
-                       'isDisabled' => $isDisabled,
                        'permissions' => $permissions,
                        'options' => $options,
                        'additionalData' => serialize($additionalData),
@@ -136,6 +135,10 @@ class UserOptionPackageInstallationPlugin extends AbstractOptionPackageInstallat
                else {
                        // append option name
                        $data['optionName'] = $optionName;
+                       // append disabled state
+                       $data['isDisabled'] = $isDisabled;
+                       
+                       // create option
                        $data['packageID'] = $this->installation->getPackageID();
                        UserOptionEditor::create($data);
                }