Skip to content

Commit d086006

Browse files
committed
fix(selectfield): workaround GLPI issue 3308
1 parent a885b59 commit d086006

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inc/fields/selectfield.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ public function displayField($canEdit = true) {
1212
if (!empty($this->fields['values'])) {
1313
foreach ($values as $value) {
1414
if ((trim($value) != '')) {
15-
$tab_values[$value] = $value;
15+
if (version_compare(GLPI_VERSION, '9.2.1') <= 0) {
16+
$tab_values[Html::entities_deep($value)] = $value;
17+
} else {
18+
$tab_values[$value] = $value;
19+
}
1620
}
1721
}
1822

0 commit comments

Comments
 (0)