From b7b2fe92ac9af5d4be2cc6cce5ee03640079ee8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Mar 2015 19:07:34 +0100 Subject: [PATCH] Fix state index of view_tree_state changeset a1daf85d3a5a added the timestamp to the state but did not change the index. --- src/screen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screen.js b/src/screen.js index 7826e74c4a..50f9fa5231 100644 --- a/src/screen.js +++ b/src/screen.js @@ -1358,8 +1358,8 @@ state_prm.done(function(state) { var expanded_nodes, selected_nodes, record; this.tree_states[parent_][view.children_field || null] = state; - expanded_nodes = state[0]; - selected_nodes = state[1]; + expanded_nodes = state[1]; + selected_nodes = state[2]; if (view.view_type == 'tree') { view.display(selected_nodes, expanded_nodes); } else {