fix(templating): another fix for templating and custom all value escaping, fixes #4787

This commit is contained in:
Torkel Ödegaard 2016-04-22 13:59:54 +02:00
parent 2748a3fbd8
commit 1dfeb192a3
2 changed files with 1 additions and 6 deletions

View File

@ -294,11 +294,6 @@ function (angular, _, kbn) {
};
this.addAllOption = function(variable) {
if (variable.allValue) {
variable.options.unshift({text: 'All', value: variable.allValue});
return;
}
variable.options.unshift({text: 'All', value: "$__all"});
};

View File

@ -280,7 +280,7 @@ define([
});
it('should add All option with custom value', function() {
expect(scenario.variable.options[0].value).to.be('*');
expect(scenario.variable.options[0].value).to.be('$__all');
});
});