diff --git a/CHANGELOG.md b/CHANGELOG.md index 997e5a1c..6076b750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fix plugin configuration deletion during uninstallation - Fix nested array stored in DB for readonly dropdown - Fix migration abort when a GenericObject container name produces a table name exceeding MySQL's 64-character limit after conversion to GlpiCustomAsset. - Fix empty dropdown value (-1) on form submission diff --git a/hook.php b/hook.php index d55222fd..1ecd134b 100644 --- a/hook.php +++ b/hook.php @@ -165,6 +165,12 @@ function plugin_fields_uninstall() 'itemtype' => ['LIKE' , 'PluginFields%'], ]); + // clean configuration values + $config = new Config(); + $config->deleteByCriteria([ + 'context' => 'plugin:fields', + ]); + return true; }