Commit c0d8052de53b9171d670fd48f619462e6bc6e68a

Authored by Renato De Donato
1 parent 420ea6ab

filters bug

controllets/filters-controllet/filters-controllet.html
... ... @@ -270,9 +270,11 @@
270 270 },
271 271  
272 272 setFilters : function(filters) {
273   - this.filters = this._copy(filters);
274   - this.logicalOperator = this.filters[0].logicalOperator;
275   - this._fire();
  273 + if(filters && filters.length > 0) {
  274 + this.filters = this._copy(filters);
  275 + this.logicalOperator = this.filters[0].logicalOperator;
  276 + this._fire();
  277 + }
276 278 },
277 279  
278 280 getFilters : function() {
... ...