mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
fix(elasticsearch): quote variable value in lucene variable mulit format, fixes #2828
This commit is contained in:
@@ -262,7 +262,10 @@ function (angular, _, kbn) {
|
||||
break;
|
||||
}
|
||||
case 'lucene': {
|
||||
allValue = '(' + _.pluck(variable.options, 'text').join(' OR ') + ')';
|
||||
var quotedValues = _.map(variable.options, function(val) {
|
||||
return '\\\"' + val.text + '\\\"';
|
||||
});
|
||||
allValue = '(' + quotedValues.join(' OR ') + ')';
|
||||
break;
|
||||
}
|
||||
case 'regex values': {
|
||||
|
||||
Reference in New Issue
Block a user