changeset 932d230de8b2 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=932d230de8b2
description:
        Clear tree_states_done only on screen clear and reset views

        issue10446
        review362011002
        (grafted from c3c7a1f4b6239bd1c50c0e0471b26b57011538e8)
diffstat:

 src/screen.js |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r e00f344517b5 -r 932d230de8b2 src/screen.js
--- a/src/screen.js     Mon Jun 07 22:21:49 2021 +0100
+++ b/src/screen.js     Fri Jun 11 00:23:59 2021 +0200
@@ -1291,8 +1291,8 @@
             if (set_cursor === undefined) {
                 set_cursor = true;
             }
-            this.tree_states_done = [];
             this.group.load(ids, modified);
+            this.current_view.reset();
             if (ids.length && this.current_view.view_type != 'calendar') {
                 this.current_record = this.group.get(ids[0]);
             } else {
@@ -1424,6 +1424,7 @@
         clear: function() {
             this.current_record = null;
             this.group.clear();
+            this.tree_states_done = [];
             this.views.map(function(view) {
                 view.reset();
             });

Reply via email to