Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/support/2.13.0' into support/2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 19, 2024
2 parents 9c5a2c2 + eebcc21 commit 5490986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/field/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ public function rawSearchOptions() {
'field' => 'name',
'name' => __('Technician'),
'datatype' => 'dropdown',
'forcegroupby' => true,
'massiveaction' => false,
'nodisplay' => $hide_technician,
'nosearch' => $hide_technician,
Expand Down

0 comments on commit 5490986

Please sign in to comment.