Skip to content

Commit

Permalink
Invalidate submenu data in current session when add (or delete) a new…
Browse files Browse the repository at this point in the history
… dropdown itemtype
  • Loading branch information
Emmanuel Haguet authored and Walid committed Aug 20, 2016
1 parent 2d64145 commit 55be42d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/type.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,9 @@ static function addNewDropdown($name, $itemtype, $options = array()) {
self::addDropdownTable(getTableForItemType($itemtype), $params);
self::addDropdownFrontFile($name);
self::addDropdownFrontformFile($name);

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

/**
Expand Down Expand Up @@ -1676,6 +1679,9 @@ static function deleteDropdownsForItemtype($itemtype) {
self::deleteClassFile($name);
}
}

// Invalidate submenu data in current session for minor cleanup
unset($_SESSION['glpimenu']);
}
//------------------------------- GETTERS -------------------------//

Expand Down

0 comments on commit 55be42d

Please sign in to comment.