From 66bea30e0629e3a8bb3105dd0a89370b6cfdfc26 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Mon, 6 Nov 2023 10:26:13 +0100 Subject: [PATCH] fix(glpiselectfield): disable anonymization of user for answer resolution --- 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 d725b0d9d..077a43394 100644 --- a/inc/field/dropdownfield.class.php +++ b/inc/field/dropdownfield.class.php @@ -419,7 +419,7 @@ public function getValueForTargetText($domain, $richText): ?string { $DbUtil = new DbUtils(); $itemtype = $this->getSubItemtype(); if ($itemtype == User::class) { - $value = $DbUtil->getUserName($this->value); + $value = $DbUtil->getUserName($this->value, 0, true); } else { $value = Dropdown::getDropdownName($DbUtil->getTableForItemType($itemtype), $this->value); }