fix(graphite): Fix for bug when using series ref (#A-Z) and referenced series is hidden in query editor. fixes #2484

This commit is contained in:
Torkel Ödegaard
2015-08-10 07:59:27 +02:00
parent 95cad91bae
commit fb9f954882
3 changed files with 12 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ function (angular, _, $, config, kbn, moment) {
for (i = 0; i < options.targets.length; i++) {
target = options.targets[i];
if (!target.target || target.hide) {
if (!target.target) {
continue;
}
@@ -278,7 +278,9 @@ function (angular, _, $, config, kbn, moment) {
targetValue = targetValue.replace(regex, nestedSeriesRegexReplacer);
targets[this._seriesRefLetters[i]] = targetValue;
clean_options.push("target=" + encodeURIComponent(targetValue));
if (!target.hide) {
clean_options.push("target=" + encodeURIComponent(targetValue));
}
}
_.each(options, function (value, key) {