From 19603d8f626f6689fd619487cb6e39626372ad49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 29 Apr 2022 23:25:36 +0200 Subject: [PATCH] Use column instead of optional variable to loop over optionals This was the original variable name before changeset 9efb7fa52876. issue11441 --- src/view/tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/tree.js b/src/view/tree.js index 4b179a1ed3..6122611843 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -337,7 +337,7 @@ }, save_optional: function(store=true) { var fields = {}; - for (const optional of this.optionals) { + for (const column of this.optionals) { fields[column.attributes.name] = !column.get_visible(); } if (store) {