mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Fix adf is not defined for customStencil (#2795)
This commit is contained in:
@@ -68,6 +68,10 @@ export class FormFieldComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
const w: any = window;
|
||||||
|
if (w.adf === undefined) {
|
||||||
|
w.adf = {};
|
||||||
|
}
|
||||||
let originalField = this.getField();
|
let originalField = this.getField();
|
||||||
if (originalField) {
|
if (originalField) {
|
||||||
let customTemplate = this.field.form.customFieldTemplates[originalField.type];
|
let customTemplate = this.field.form.customFieldTemplates[originalField.type];
|
||||||
|
|||||||
Reference in New Issue
Block a user