Skip to content

EspoCRM – Open Source CRM Application

list: take into account hidden if no settings available

Yuri Kuznetsov1d6f8ef671a5
diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js
index 4e725b831a..fd4e67709d 100644
--- a/client/src/views/record/list.js
+++ b/client/src/views/record/list.js
@@ -2584,6 +2584,10 @@ class ListRecordView extends View {
let emptyWidthMet = false;
const visibleColumns = this.listLayout.filter(it => {
+ if (!this._listSettingsHelper && it.hidden) {
+ return false;
+ }
+
if (!this._listSettingsHelper) {
return true;
}
@@ -2746,6 +2750,10 @@ class ListRecordView extends View {
}
}
+ if (!this._listSettingsHelper && col.hidden) {
+ continue;
+ }
+
layout.push(item);
}