From 2d6d66312185d3b9fe840b244911fe24df6efad0 Mon Sep 17 00:00:00 2001 From: RomainLvr Date: Mon, 10 Nov 2025 14:40:51 +0100 Subject: [PATCH 1/2] Fix - Check method existence before calling uninstall on custom assets --- hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hook.php b/hook.php index 90a3b51..88d83bb 100644 --- a/hook.php +++ b/hook.php @@ -91,7 +91,7 @@ function plugin_genericobject_uninstall() //For each type foreach (PluginGenericobjectType::getTypes(true) as $tmp => $value) { $itemtype = $value['itemtype']; - if (class_exists($itemtype)) { + if (class_exists($itemtype) && method_exists($itemtype, 'uninstall')) { $itemtype::uninstall(); } } From d5f89b3de143e4301f14a70f72099accbad15346 Mon Sep 17 00:00:00 2001 From: RomainLvr Date: Mon, 10 Nov 2025 16:25:42 +0100 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15bc366..e8292ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - XXXX-XX-XX - Fix Twig error on migration_status page +- Check method existence before calling uninstall on custom assets ## [3.0.0 End-of-Life Updater] - 2025-30-09