Skip to content

Commit eb9a810

Browse files
committed
Clean uninstall
1 parent 202ef82 commit eb9a810

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎hook.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ function plugin_addressing_uninstall()
304304
}
305305

306306
Profile::removeRightsFromSession();
307-
CronTask::unregister("addressing");
307+
// Deleted by its exact itemtype: CronTask::unregister()'s LIKE pattern does not match the
308+
// backslashes of a namespaced itemtype, so the task stayed listed in the automatic actions.
309+
$DB->delete('glpi_crontasks', ['itemtype' => PingInfo::class]);
308310

309311
foreach ($tables as $table) {
310312
$migration->dropTable($table);

0 commit comments

Comments
 (0)