Skip to content

Commit

Permalink
fix(dropdownfield): bad entity restriction
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 7, 2020
1 parent dd585eb commit 3a664f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function buildParams($rand = null) {
'value' => $this->value,
'display' => false,
'comments' => false,
'entity' => $_SESSION['glpiactiveentities'],
'entity' => $_SESSION['glpiactive_entity'], // TODO: replace by Session::getActiveEntity when dropping GLPI 9.4
'displaywith' => ['id'],
];

Expand Down

0 comments on commit 3a664f8

Please sign in to comment.