all fields

This commit is contained in:
Yuri Kuznetsov
2023-08-30 18:13:57 +03:00
parent 0083d99d37
commit ad962d5bcd
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -90,6 +90,8 @@ class LayoutBaseView extends View {
let defs = this.getMetadata()
.get(['clientDefs', this.scope, 'additionalLayouts', this.type]) ?? {};
this.typeDefs = defs;
this.dataAttributeList = Espo.Utils.clone(defs.dataAttributeList || this.dataAttributeList);
this.isCustom = !!defs.isCustom;
+6
View File
@@ -199,6 +199,12 @@ define('views/admin/layouts/detail', ['views/admin/layouts/grid'], function (Dep
return;
}
if (this.typeDefs.allFields) {
resolve();
return;
}
this.getHelper().layoutManager.getOriginal(
this.scope,
'defaultSidePanel',
+4
View File
@@ -426,6 +426,10 @@
"type": "string"
},
"description": "Data attributes."
},
"allFields": {
"type": "boolean",
"description": "All fields. Actual for the detail type. If false, fields added in the side panel layout won't be available."
}
}
}