Skip to content

Commit

Permalink
Invalidate menu data in current session when the plugin is uninstalled
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Haguet authored and Walid committed Aug 20, 2016
1 parent 62ec571 commit 2d64145
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ function plugin_genericobject_uninstall() {
$DB->query("DELETE FROM $table_datainjection_model WHERE itemtype LIKE 'PluginGenericobject%'");
}

// Invalidate menu data in current session
unset($_SESSION['glpimenu']);

return true;
}

Expand Down

0 comments on commit 2d64145

Please sign in to comment.