Преглед изворни кода

fix: Html escaping caused issue in InfluxDB query editor, could not pick greater than or less then operators, fixes #9871

Torkel Ödegaard пре 8 година
родитељ
комит
012b72cdbf

+ 2 - 0
public/app/core/components/form_dropdown/form_dropdown.ts

@@ -159,6 +159,8 @@ export class FormDropdownCtrl {
   }
 
   updateValue(text) {
+    text = _.unescape(text);
+
     if (text === '' || this.text === text) {
       return;
     }

+ 2 - 0
public/app/core/directives/metric_segment.js

@@ -39,6 +39,8 @@ function (_, $, coreModule) {
             return;
           }
 
+          value = _.unescape(value)
+
           $scope.$apply(function() {
             var selected = _.find($scope.altSegments, {value: value});
             if (selected) {