Skip to content

Commit

Permalink
fix(issue): localization problem impacting picture
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Apr 2, 2020
1 parent 54d4892 commit d1e6e1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d1e6e1c

Please sign in to comment.