We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a885b59 commit d086006Copy full SHA for d086006
inc/fields/selectfield.class.php
@@ -12,7 +12,11 @@ public function displayField($canEdit = true) {
12
if (!empty($this->fields['values'])) {
13
foreach ($values as $value) {
14
if ((trim($value) != '')) {
15
- $tab_values[$value] = $value;
+ 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
+ }
20
}
21
22
0 commit comments