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 <[email protected]>
  • Loading branch information
btry committed Oct 7, 2020
1 parent 231e9e4 commit 9f4b1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/fields/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function displayField($canEdit = true) {
$dparams = ['name' => $fieldName,
'value' => $this->value,
'comments' => false,
'entity' => $_SESSION['glpiactiveentities'],
'entity' => $_SESSION['glpiactive_entity'], // TODO: replace by Session::getActiveEntity when dropping GLPI 9.4
'displaywith' => ['id'],
'rand' => $rand];

Expand Down

0 comments on commit 9f4b1ad

Please sign in to comment.