Skip to content
Merged
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Jamf Plugin for GLPI Changelog

## [UNRELEASED]

### Fixed

- Fix leftover data (profile rights and config values) after plugin uninstall

## [3.2.2] - 2026-08-03

### Fixed
Expand Down
13 changes: 10 additions & 3 deletions inc/migration.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ public function uninstall()
'plugin_version',
]);
CronTask::unregister('Jamf');
ProfileRight::deleteProfileRights([
PluginJamfMobileDevice::$rightname,
PluginJamfRuleImport::$rightname,
PluginJamfUser_JSSAccount::$rightname,
PluginJamfItem_MDMCommand::$rightname,
PluginJamfComputer::$rightname,
]);
if (is_dir(GLPI_PLUGIN_DOC_DIR . "/jamf/")) {
Toolbox::deleteDir(GLPI_PLUGIN_DOC_DIR . "/jamf/");
}
Expand Down Expand Up @@ -381,15 +388,15 @@ private function apply_2_0_0_migration()

// Add default status config option
if (!isset($config['default_status'])) {
$this->glpiMigration->addConfig(['default_status', null], 'plugin:Jamf');
$this->glpiMigration->addConfig(['default_status' => null], 'plugin:Jamf');
}

if (!isset($config['sync_components'])) {
$this->glpiMigration->addConfig(['sync_components', 0], 'plugin:Jamf');
$this->glpiMigration->addConfig(['sync_components' => 0], 'plugin:Jamf');
}

if (!isset($config['jssignorecert'])) {
$this->glpiMigration->addConfig(['jssignorecert', 0], 'plugin:Jamf');
$this->glpiMigration->addConfig(['jssignorecert' => 0], 'plugin:Jamf');
}
}

Expand Down