[FIX] web: properly handle setting stored in localstorage
This commit is contained in:
@@ -283,7 +283,7 @@ var SearchView = Widget.extend({
|
||||
this.filters = [];
|
||||
this.groupbys = [];
|
||||
var visibleSearchMenu = this.call('local_storage', 'getItem', 'visible_search_menu');
|
||||
this.visible_filters = (visibleSearchMenu === 'true');
|
||||
this.visible_filters = (visibleSearchMenu !== 'false');
|
||||
this.input_subviews = []; // for user input in searchbar
|
||||
this.search_defaults = this.options.search_defaults || {};
|
||||
this.headless = this.options.hidden && _.isEmpty(this.search_defaults);
|
||||
|
||||
Reference in New Issue
Block a user