From 3a664f80810d1d854b4d80617a5781890f700cd9 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Wed, 7 Oct 2020 09:45:59 +0200 Subject: [PATCH] fix(dropdownfield): bad entity restriction Signed-off-by: Thierry Bugier --- inc/field/dropdownfield.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/field/dropdownfield.class.php b/inc/field/dropdownfield.class.php index 75e82bb76..ada20a5cf 100644 --- a/inc/field/dropdownfield.class.php +++ b/inc/field/dropdownfield.class.php @@ -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'], ];