the method prepare_dropdown_menu wasn't called when the searchview did
not have an action id. This can cause problems in some cases (for
example, a crash in messaging when toggling the favorite menu)
}
})
.on('reset', this.proxy('clear_selection'));
- if (!this.action_id) return $.when();
+ if (!this.action_id) {
+ this.prepare_dropdown_menu([]);
+ return $.when();
+ }
return this.model.call('get_filters', [this.target_model, this.action_id])
.done(this.proxy('prepare_dropdown_menu'));
},