Commit 6f2dd2e2 by Harald Kraemer

Fixed an old method name

parent 36b44d69
...@@ -118,7 +118,7 @@ function (angular, _, $, config, kbn, moment) { ...@@ -118,7 +118,7 @@ function (angular, _, $, config, kbn, moment) {
GraphiteDatasource.prototype.metricFindQuery = function(filterSrv, query) { GraphiteDatasource.prototype.metricFindQuery = function(filterSrv, query) {
var interpolated; var interpolated;
try { try {
interpolated = filterSrv.applyFilterToTarget(query); interpolated = filterSrv.applyTemplateToTarget(query);
} }
catch(err) { catch(err) {
return $q.reject(err); return $q.reject(err);
...@@ -174,7 +174,7 @@ function (angular, _, $, config, kbn, moment) { ...@@ -174,7 +174,7 @@ function (angular, _, $, config, kbn, moment) {
if (key === "targets") { if (key === "targets") {
_.each(value, function (value) { _.each(value, function (value) {
if (!value.hide) { if (!value.hide) {
var targetValue = filterSrv.applyFilterToTarget(value.target); var targetValue = filterSrv.applyTemplateToTarget(value.target);
clean_options.push("target=" + encodeURIComponent(targetValue)); clean_options.push("target=" + encodeURIComponent(targetValue));
} }
}, this); }, this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment