From ac2c5c72c12253ccdbcbf59836bd12a13deed89f Mon Sep 17 00:00:00 2001 From: mbressy Date: Mon, 8 Jun 2026 09:27:08 +0000 Subject: [PATCH 1/3] clean plugin configuration --- hook.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hook.php b/hook.php index d55222fd..cbad60ec 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; } From d351529b3f0b0e9954e7f6a7b94c880da27c1a08 Mon Sep 17 00:00:00 2001 From: mbressy Date: Mon, 8 Jun 2026 09:31:53 +0000 Subject: [PATCH 2/3] update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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 From 418ba64b43b8e219936643159f305940328f7a76 Mon Sep 17 00:00:00 2001 From: mbressy Date: Mon, 8 Jun 2026 09:53:55 +0000 Subject: [PATCH 3/3] syntax fix --- hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hook.php b/hook.php index cbad60ec..1ecd134b 100644 --- a/hook.php +++ b/hook.php @@ -168,7 +168,7 @@ function plugin_fields_uninstall() // clean configuration values $config = new Config(); $config->deleteByCriteria([ - 'context' => 'plugin_fields', + 'context' => 'plugin:fields', ]); return true;