From ed12d70a9b08c81772fcfabd072b01520fc64046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 27 Dec 2015 20:09:49 +0100 Subject: [PATCH] Also test column visibility in next_column issue5192 review16901002 --- src/view/tree.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/view/tree.js b/src/view/tree.js index 38f6a1e124..f1f874bddf 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -855,7 +855,7 @@ } }, next_column: function(path, editable, sign) { - var i, readonly; + var i, readonly, invisible; var column, column_index, state_attrs; sign = sign || 1; @@ -875,13 +875,17 @@ } column = this.tree.columns[column_index]; state_attrs = column.field.get_state_attrs(this.record); + invisible = state_attrs.invisible; + if (column.attributes.tree_invisible) { + invisible = true; + } if (editable) { readonly = (column.attributes.readonly || state_attrs.readonly); } else { readonly = false; } - if (!(state_attrs.invisible || readonly)) { + if (!(invisible || readonly)) { break; } }