Fixed missing default mandate on filters

This commit is contained in:
Rashid Khan
2013-10-28 12:57:14 -07:00
parent 036f6c5501
commit 113c6fc572
3 changed files with 14 additions and 5 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ if(!_.isUndefined(ARGS.query)) {
queries = {
0: {
query: '*',
id: 0
id: 0,
}
};
}
@@ -93,7 +93,7 @@ dashboard.services.filter = {
field: ARGS.timefield||"@timestamp",
type: "time",
active: true,
id: 0
id: 0,
}
},
ids: [0]
+6 -1
View File
@@ -36,6 +36,10 @@ define([
self.ids = dashboard.current.services.filter.ids;
_f = dashboard.current.services.filter;
_.each(self.list,function(f) {
self.set(f,f.id,true);
});
// Date filters hold strings now, not dates
/*
_.each(self.getByType('time',true),function(time) {
@@ -66,7 +70,8 @@ define([
var _id = nextId();
var _filter = {
alias: '',
id: _id
id: _id,
mandate: 'must'
};
_.defaults(filter,_filter);
self.list[_id] = filter;