From d26d7162a5dfe0dc4d6808dea031f75918a3e56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 16 Mar 2016 13:10:48 +0100 Subject: [PATCH] fix(opentsdb): fixed templating issue for single value variables, fixes #4312 --- public/app/features/templating/templateSrv.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/features/templating/templateSrv.js b/public/app/features/templating/templateSrv.js index ece69302196..0aa0990896c 100644 --- a/public/app/features/templating/templateSrv.js +++ b/public/app/features/templating/templateSrv.js @@ -69,6 +69,9 @@ function (angular, _) { return '(' + quotedValues.join(' OR ') + ')'; } case "pipe": { + if (typeof value === 'string') { + return value; + } return value.join('|'); } default: {