Explorar o código

fix(templating): fixed issue with template variables that use regex extraction, fixes #4672

Torkel Ödegaard %!s(int64=9) %!d(string=hai) anos
pai
achega
7456514816
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      CHANGELOG.md
  2. 1 0
      public/app/features/templating/templateValuesSrv.js

+ 1 - 0
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)
 

+ 1 - 0
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;
           }
         }