diff --git a/CHANGELOG.md b/CHANGELOG.md index e77b78ef..37b04d80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,20 +5,19 @@ 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/). -## [1.22.0] - 2025-09-30 -### Added - -- GLPI 11 compatibility +## [UNRELEASED] ### Fixed -- Fix `massive action` for adding value to `multiple` dropdown fields -- Fix for the `COALESCE` part of the `SQL query` for `multiple` dropdowns -- Fix `search option` for `multiple` dropdown -- Fix display from Planning view - Fix `classname` resolution when multiple `s` at end of container name +## [1.22.0] - 2025-09-30 + +### Added + +- GLPI 11 compatibility + ## [1.21.23] - 2025-08-26 ### Fixed diff --git a/inc/container.class.php b/inc/container.class.php index 2a98cc66..9b65465b 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -838,8 +838,7 @@ public static function preItemPurge($item) foreach ($founded_containers as $container) { $itemtypes = json_decode($container['itemtypes']); if (in_array($itemtype, $itemtypes)) { - $classname = 'PluginFields' . $itemtype . getSingular($container['name']); - $classname = preg_replace('/s{2}$/i', 's', $classname); // in case name ends with 'ss' remove last 's' + $classname = self::getClassname($itemtype, $container['name']); $fields = new $classname(); $fields->deleteByCriteria(['items_id' => $item->fields['id']], true); }