From d1e6e1cb666e969e551e80ec2ab0c0592d6cc2e0 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 2 Apr 2020 16:23:54 +0200 Subject: [PATCH] fix(issue): localization problem impacting picture Signed-off-by: Thierry Bugier --- inc/formanswer.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/formanswer.class.php b/inc/formanswer.class.php index fe14ffb06..0a9ffd7a7 100644 --- a/inc/formanswer.class.php +++ b/inc/formanswer.class.php @@ -299,7 +299,10 @@ public static function getSpecificValueToDisplay($field, $values, array $options global $CFG_GLPI; if (!is_array($values)) { + $language = $_SESSION["glpilanguage"]; + Session::loadLanguage('en_GB'); $elements = self::getStatuses(); + Session::loadLanguage($language); $values = [$field => $elements[$values]]; } switch ($field) {