all fields
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user