Skip to content

Commit 55be42d

Browse files
Emmanuel HaguetWalid
Emmanuel Haguet
authored and
Walid
committed
Invalidate submenu data in current session when add (or delete) a new dropdown itemtype
1 parent 2d64145 commit 55be42d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

inc/type.class.php

+6
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,9 @@ static function addNewDropdown($name, $itemtype, $options = array()) {
772772
self::addDropdownTable(getTableForItemType($itemtype), $params);
773773
self::addDropdownFrontFile($name);
774774
self::addDropdownFrontformFile($name);
775+
776+
// Invalidate submenu data in current session
777+
unset($_SESSION['glpimenu']);
775778
}
776779

777780
/**
@@ -1676,6 +1679,9 @@ static function deleteDropdownsForItemtype($itemtype) {
16761679
self::deleteClassFile($name);
16771680
}
16781681
}
1682+
1683+
// Invalidate submenu data in current session for minor cleanup
1684+
unset($_SESSION['glpimenu']);
16791685
}
16801686
//------------------------------- GETTERS -------------------------//
16811687

0 commit comments

Comments
 (0)