Use column instead of optional variable to loop over optionals

This was the original variable name before changeset 9efb7fa52876.

issue11441
This commit is contained in:
Cédric Krier
2022-04-29 23:25:36 +02:00
parent e9b5f7cc8e
commit 19603d8f62
+1 -1
View File
@@ -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) {