diff --git a/src/tab.js b/src/tab.js index 2e0d33d6e7..1a361cfb77 100644 --- a/src/tab.js +++ b/src/tab.js @@ -725,7 +725,6 @@ if (this.screen.current_record) { record_id = this.screen.current_record.id; } - this.screen.save_tree_state(false); if (this.screen.current_view.view_type != 'form') { return this.screen.search_filter( this.screen.screen_container.search_entry.val()) @@ -752,6 +751,7 @@ if (test_modified) { return this.modified_save().then(reload); } else { + this.screen.save_tree_state(false); return reload(); } },