From d1b03265c11cb4589986ec551bf6c11e330f7f11 Mon Sep 17 00:00:00 2001 From: Lainow Date: Wed, 3 Jun 2026 11:49:19 +0200 Subject: [PATCH 1/2] Clean plugin uninstall residual data --- inc/profile.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/profile.class.php b/inc/profile.class.php index 0628382fbd..c39ddf708f 100644 --- a/inc/profile.class.php +++ b/inc/profile.class.php @@ -147,10 +147,8 @@ public static function install(Migration $migration) public static function uninstall() { - $item = new Profile(); - $item->deleteByCriteria([ - 'name' => ['LIKE', 'PluginOrder%'], - ]); + $rights = array_column(self::getAllRights(true), 'field'); + ProfileRight::deleteProfileRights($rights); self::removeRightsFromSession(); } From fc18a9c9b5268ec88eb7719e2dbcb06390c03b8e Mon Sep 17 00:00:00 2001 From: Lainow Date: Wed, 3 Jun 2026 11:50:20 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fc2c01c7a..5af4e4b192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Clean plugin uninstall residual data - Fix generate associated item massive action - Prevent invalid references and non-existent classes during generate item flow. - Remove unnecessary message during plugin installation