Skip to content

Commit

Permalink
fix(selectfield): workaround GLPI issue 3308
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Dec 19, 2017
1 parent a885b59 commit d086006
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/fields/selectfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ public function displayField($canEdit = true) {
if (!empty($this->fields['values'])) {
foreach ($values as $value) {
if ((trim($value) != '')) {
$tab_values[$value] = $value;
if (version_compare(GLPI_VERSION, '9.2.1') <= 0) {
$tab_values[Html::entities_deep($value)] = $value;
} else {
$tab_values[$value] = $value;
}
}
}

Expand Down

0 comments on commit d086006

Please sign in to comment.