diff --git a/inc/field/dropdownfield.class.php b/inc/field/dropdownfield.class.php index d57bd8570..adcd9ff3a 100644 --- a/inc/field/dropdownfield.class.php +++ b/inc/field/dropdownfield.class.php @@ -754,8 +754,9 @@ private function getMyGroups($userID) { if ($result->count() === 0) { return []; } + $a_groups = []; foreach ($result as $data) { - $a_groups = $dbUtil->getAncestorsOf("glpi_groups", $data["groups_id"]); + $a_groups = $a_groups + $dbUtil->getAncestorsOf("glpi_groups", $data["groups_id"]); $a_groups[$data["groups_id"]] = $data["groups_id"]; } return $a_groups; diff --git a/inc/issue.class.php b/inc/issue.class.php index dfc7e1807..70474b229 100644 --- a/inc/issue.class.php +++ b/inc/issue.class.php @@ -751,6 +751,7 @@ public function rawSearchOptions() { 'field' => 'name', 'name' => __('Technician'), 'datatype' => 'dropdown', + 'forcegroupby' => true, 'massiveaction' => false, 'nodisplay' => $hide_technician, 'nosearch' => $hide_technician,