Skip to content

Commit 4da6dfc

Browse files
committed
invalidate menu when adding a field to an item; see #52
1 parent d834916 commit 4da6dfc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inc/field.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ public static function addNewField($table, $field, $after=false) {
364364
$name, 'PluginGenericobject'.ucfirst($name), $options
365365
);
366366
}
367-
367+
// Invalidate menu data in current session
368+
unset($_SESSION['glpimenu']);
369+
368370
PluginGenericobjectSingletonObjectField::getInstance($itemtype, true);
369371
}
370372
}

0 commit comments

Comments
 (0)