Skip to content
Open
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion inc/uninstall.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ private static function doOneUninstall(PluginUninstallModel $model, Transfer $tr
}
}

if ($item->isField('groups_id')) {
$can_update_groups = $item->isField('groups_id') || method_exists($item, 'prepareGroupFields');
if ($can_update_groups) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you test this?

Suggested change
$can_update_groups = $item->isField('groups_id') || method_exists($item, 'prepareGroupFields');
if ($can_update_groups) {
if (
$item->isField('groups_id') ||
($item instanceof AssignableItemInterface)
) {

Then have the customer validate the patch?

$nbgroup = countElementsInTableForEntity(
"glpi_groups",
$entity,
Expand Down