From 012b72cdbf78d8d64947219a9c0876c11cb8fcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 14 Nov 2017 11:27:36 +0100 Subject: [PATCH] fix: Html escaping caused issue in InfluxDB query editor, could not pick greater than or less then operators, fixes #9871 --- public/app/core/components/form_dropdown/form_dropdown.ts | 2 ++ public/app/core/directives/metric_segment.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/public/app/core/components/form_dropdown/form_dropdown.ts b/public/app/core/components/form_dropdown/form_dropdown.ts index b1cbd9b6ced..331a7381523 100644 --- a/public/app/core/components/form_dropdown/form_dropdown.ts +++ b/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; } diff --git a/public/app/core/directives/metric_segment.js b/public/app/core/directives/metric_segment.js index 37352556819..43409d414b0 100644 --- a/public/app/core/directives/metric_segment.js +++ b/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) {