[FIX] the SearchQuery.add methods now properly removes the 'at' and 'merge' keys before propagating options, so the tests should now pass (addon web)
bzr revid: ged@openerp.com-20140110154812-kazqirnie3kwtl4m
This commit is contained in:
@@ -85,7 +85,7 @@ my.SearchQuery = B.Collection.extend({
|
||||
&& facet.get('field') === model.get('field');
|
||||
});
|
||||
if (previous) {
|
||||
previous.values.add(model.get('values'), options);
|
||||
previous.values.add(model.get('values'), _.omit(options, 'at', 'merge'));
|
||||
return;
|
||||
}
|
||||
B.Collection.prototype.add.call(this, model, options);
|
||||
|
||||
Reference in New Issue
Block a user