Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed

- Fix locales encoding
- Fix group assignment when applying uninstall templates on assignable items

## [2.10.3] - 2025-11-25

Expand Down
6 changes: 5 additions & 1 deletion inc/uninstall.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*/

use Glpi\Asset\Asset_PeripheralAsset;
use Glpi\Features\AssignableItemInterface;

use function Safe\preg_grep;

Expand Down Expand Up @@ -213,7 +214,10 @@ private static function doOneUninstall(PluginUninstallModel $model, Transfer $tr
}
}

if ($item->isField('groups_id')) {
if (
$item->isField('groups_id')
|| ($item instanceof AssignableItemInterface)
) {
$nbgroup = countElementsInTableForEntity(
"glpi_groups",
$entity,
Expand Down