diff --git a/src/frontend/app/administration/template/template-administration.component.ts b/src/frontend/app/administration/template/template-administration.component.ts index f4e767c5f4b9319e89e6fb96629d8446455e9fd5..9a647bf74443280f587c5c6f853742ba13dcbd6a 100755 --- a/src/frontend/app/administration/template/template-administration.component.ts +++ b/src/frontend/app/administration/template/template-administration.component.ts @@ -286,7 +286,7 @@ export class TemplateAdministrationComponent implements OnInit { this.template.template_datasource = 'letterbox_attachment'; } - if (this.template.template_style != 'uploadFile' && !this.template.jnlpUniqueId && !this.template.template_file_name && (this.template.template_type == 'OFFICE' || this.template.template_type == 'OFFICE_HTML')) { + if (this.template.template_style != 'uploadFile' && !this.template.jnlpUniqueId && !this.template.template_file_name && this.template.template_style && (this.template.template_type == 'OFFICE' || this.template.template_type == 'OFFICE_HTML')) { alert(this.lang.editModelFirst); return; }