From 7456514816c46c6d4829a2d0d66830d8bf26abd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 13 Apr 2016 16:41:19 -0400 Subject: [PATCH] fix(templating): fixed issue with template variables that use regex extraction, fixes #4672 --- CHANGELOG.md | 1 + public/app/features/templating/templateValuesSrv.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5d3e899e30..86103f8e8c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Bug fixes * **Home dashboard**: Fixed issue with permission denied error on home dashboard, fixes [#4686](https://github.com/grafana/grafana/issues/4686) +* **Templating**: Fixed issue templating variables that use regex extraction, fixes [#4672](https://github.com/grafana/grafana/issues/4672) # 3.0.0-beta3 (2016-04-12) diff --git a/public/app/features/templating/templateValuesSrv.js b/public/app/features/templating/templateValuesSrv.js index 4cd33e3db29..799e27583d5 100644 --- a/public/app/features/templating/templateValuesSrv.js +++ b/public/app/features/templating/templateValuesSrv.js @@ -281,6 +281,7 @@ function (angular, _, kbn) { if (!matches) { continue; } if (matches.length > 1) { value = matches[1]; + text = value; } }