diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 4079509..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,12 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](http://keepachangelog.com/) -and this project adheres to [Semantic Versioning](http://semver.org/). - -## [0.1.0] - 2025-09-30 - -### Added - -- GLPI 11 compatibility diff --git a/hook.php b/hook.php index f6751d5..7e03f46 100644 --- a/hook.php +++ b/hook.php @@ -619,7 +619,8 @@ function plugin_example_uninstall() global $DB; $config = new Config(); - $config->deleteConfigurationValues('plugin:Example', ['configuration' => false]); + $my_config = array_keys(Config::getConfigurationValues('plugin:Example')); + $config->deleteConfigurationValues('plugin:Example', $my_config); ProfileRight::deleteProfileRights([Example::$rightname]); @@ -655,6 +656,10 @@ function plugin_example_uninstall() $query = 'DROP TABLE `glpi_plugin_example_items_devicecameras`;'; $DB->doQuery($query); } + if ($DB->tableExists('glpi_plugin_example_examples')) { + $query = 'DROP TABLE `glpi_plugin_example_examples`;'; + $DB->doQuery($query); + } return true; }