fix(templating): Another atempt at fixing #2534 (Init multi value template var used in repeat panel from url), fixes #2564

This commit is contained in:
Torkel Ödegaard
2015-08-21 10:40:14 +02:00
parent 8f35683ccb
commit ca53ae4fc5
3 changed files with 6 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ function (angular, _, kbn) {
option.selected = false;
if (_.isArray(variable.current.value)) {
for (y = 0; y < variable.current.value.length; y++) {
value = variable.current.value[i];
value = variable.current.value[y];
if (option.value === value) {
option.selected = true;
}