diff --git a/inc/field/dropdownfield.class.php b/inc/field/dropdownfield.class.php index bbd48628e..cdf778a01 100644 --- a/inc/field/dropdownfield.class.php +++ b/inc/field/dropdownfield.class.php @@ -277,7 +277,7 @@ public function buildParams($rand = null) { $canViewGroupHardware = Session::haveRight('show_group_hardware', '1'); $groups = []; if ($canViewGroupHardware) { - $groups = $this->getMyGroups(Session::getLoginUserID()); + $groups = $_SESSION['glpigroups']; } if ($DB->fieldExists($itemtype::getTable(), $userFk) && !$canViewAllHardware && $canViewMyHardware