Commit 8d7ac386 by Torkel Ödegaard

Fixed issue with dashlinks/panellinks and sending template variable value 'All', Fixes #2297

parent af50188a
......@@ -116,8 +116,16 @@ function (angular, _) {
};
this.fillVariableValuesForUrl = function(params) {
var toUrlVal = function(current) {
if (current.text === 'All') {
return 'All';
} else {
return current.value;
}
};
_.each(this.variables, function(variable) {
params['var-' + variable.name] = variable.current.value;
params['var-' + variable.name] = toUrlVal(variable.current);
});
};
......
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