From aaae23e9f01fe7e251e9421b1496abbb1fc74706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 30 Jul 2015 08:07:47 +0200 Subject: [PATCH] fix(templating): fixed issue with templated dashboard and error selectOptionsForCurrentValue undefined --- public/app/features/templating/templateValuesSrv.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/features/templating/templateValuesSrv.js b/public/app/features/templating/templateValuesSrv.js index 57cce7a8df5..f0ff18fe72c 100644 --- a/public/app/features/templating/templateValuesSrv.js +++ b/public/app/features/templating/templateValuesSrv.js @@ -80,11 +80,11 @@ function (angular, _, kbn) { if (_.isArray(variable.current.value)) { variable.current.text = variable.current.value.join(' + '); - this.selectOptionsForCurrentValue(variable); + self.selectOptionsForCurrentValue(variable); } templateSrv.updateTemplateData(); - return this.updateOptionsInChildVariables(variable); + return self.updateOptionsInChildVariables(variable); }; this.variableUpdated = function(variable) { @@ -148,7 +148,7 @@ function (angular, _, kbn) { } if (_.isArray(variable.current.value)) { - this.selectOptionsForCurrentValue(variable); + self.selectOptionsForCurrentValue(variable); } else { var currentOption = _.findWhere(variable.options, { text: variable.current.text }); if (currentOption) {