[FIX] search view: restore the disable_custom_filters flag effect
This search view option was properly set but not
observed by the search view itself.
This caused all related links and smart buttons
to open a list of records that was wrongly filtered,
as soon as a default filter was applicable to the
target action (e.g. with default filters gloablly
set per model, not per action).
This regression was introduced at refactoring
commit d8d6311b50
This commit is contained in:
@@ -436,7 +436,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
|
||||
set_default_filters: function () {
|
||||
var self = this,
|
||||
default_custom_filter = this.$buttons && this.favorite_menu.get_default_filter();
|
||||
if (default_custom_filter) {
|
||||
if (!self.options.disable_custom_filters && default_custom_filter) {
|
||||
return this.favorite_menu.toggle_filter(default_custom_filter, true);
|
||||
}
|
||||
if (!_.isEmpty(this.defaults)) {
|
||||
|
||||
Reference in New Issue
Block a user