From d2a22e7b23c0b0a882940331bf6aa9db23fca1b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 25 Apr 2017 17:27:57 +0200 Subject: [PATCH] influxdb: fixed template variable interpolation of multi valued variables when using raw query editor mode, fixes #8165 --- public/app/plugins/datasource/influxdb/influx_query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/influxdb/influx_query.ts b/public/app/plugins/datasource/influxdb/influx_query.ts index c7fc795af53..e2bc0f33d14 100644 --- a/public/app/plugins/datasource/influxdb/influx_query.ts +++ b/public/app/plugins/datasource/influxdb/influx_query.ts @@ -194,7 +194,7 @@ export default class InfluxQuery { } var escapedValues = _.map(value, kbn.regexEscape); - return escapedValues.join('|'); + return '(' + escapedValues.join('|') + ')'; } render(interpolate?) {