From 4da6dfc7dea95ebb010afe394473ba5d8a6337c9 Mon Sep 17 00:00:00 2001 From: btry Date: Wed, 30 Sep 2015 16:07:30 +0200 Subject: [PATCH] invalidate menu when adding a field to an item; see #52 --- inc/field.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/field.class.php b/inc/field.class.php index e74c78cd..38216b3f 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -364,7 +364,9 @@ public static function addNewField($table, $field, $after=false) { $name, 'PluginGenericobject'.ucfirst($name), $options ); } - + // Invalidate menu data in current session + unset($_SESSION['glpimenu']); + PluginGenericobjectSingletonObjectField::getInstance($itemtype, true); } }