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

This commit is contained in:
Torkel Ödegaard 2017-11-14 11:27:36 +01:00
parent e7f3480803
commit 012b72cdbf
2 changed files with 4 additions and 0 deletions

View File

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

View File

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