Przeglądaj źródła

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

Torkel Ödegaard 9 lat temu
rodzic
commit
7456514816

+ 1 - 0
CHANGELOG.md

@@ -2,6 +2,7 @@
 
 
 ### Bug fixes
 ### Bug fixes
 * **Home dashboard**: Fixed issue with permission denied error on home dashboard, fixes [#4686](https://github.com/grafana/grafana/issues/4686)
 * **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)
 # 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) { continue; }
           if (matches.length > 1) {
           if (matches.length > 1) {
             value = matches[1];
             value = matches[1];
+            text = value;
           }
           }
         }
         }