diff --git a/entity/BulkMail_entity/entityfields/content/stateProcess.js b/entity/BulkMail_entity/entityfields/content/stateProcess.js index 618982924dea9fdd2077ce7805120d40c41ade75..6911573910aa6d2463383bc76c6ef536b3dd4a5d 100644 --- a/entity/BulkMail_entity/entityfields/content/stateProcess.js +++ b/entity/BulkMail_entity/entityfields/content/stateProcess.js @@ -9,5 +9,9 @@ if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_VIEW && { result.string(neon.COMPONENTSTATE_INVISIBLE); } +// keep in invisible mode to prevent a visible editor directly after save which needs much time to initiate (for eml) +// somehow the edit view is in view mode and the editor doesn't know anything about it and initializes itself... +else if (vars.get("$context.currentTemplateType") == DocumentTemplate.types.EML || vars.get("$context.currentTemplateType") == DocumentTemplate.types.HTML) + result.string(neon.COMPONENTSTATE_INVISIBLE); else result.string(neon.COMPONENTSTATE_EDITABLE); \ No newline at end of file diff --git a/entity/BulkMail_entity/entityfields/subject/valueProcess.js b/entity/BulkMail_entity/entityfields/subject/valueProcess.js index 757195e1284583889268991bc23255d75d6d21ea..23c099c4dd8055c22f5d145bd5a84c6d5fc8a177 100644 --- a/entity/BulkMail_entity/entityfields/subject/valueProcess.js +++ b/entity/BulkMail_entity/entityfields/subject/valueProcess.js @@ -4,10 +4,10 @@ import("Document_lib"); import("DocumentTemplate_lib"); import("system.neon"); import("system.vars"); - +/* if (vars.get("$this.value") == null && vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) { var upload = new FileUpload(vars.get("$field.bindata")); if (upload.isFilled() && DocumentTemplate.types.fromMimeType(upload.mimeType) == DocumentTemplate.types.EML) result.string(Email.fromRFC(upload.bindata).subject); -} \ No newline at end of file +}*/ \ No newline at end of file diff --git a/entity/BulkMail_entity/entityfields/subjectpreview/valueProcess.js b/entity/BulkMail_entity/entityfields/subjectpreview/valueProcess.js index 6db9b03be72afa3472c7ea1c868f7b2b0005d3a2..ee4242c53a3be5a585e6a0b3a72a65e6db091d63 100644 --- a/entity/BulkMail_entity/entityfields/subjectpreview/valueProcess.js +++ b/entity/BulkMail_entity/entityfields/subjectpreview/valueProcess.js @@ -3,7 +3,7 @@ import("system.vars"); import("system.result"); import("DocumentTemplate_lib"); -var template = new DocumentTemplate(vars.get("$field.SUBJECT"), DocumentTemplate.types.PLAIN); -var subject = template.getReplacedContentByContactId(EmployeeUtils.getCurrentContactId()); +//var template = new DocumentTemplate(vars.get("$field.SUBJECT"), DocumentTemplate.types.PLAIN); +//var subject = template.getReplacedContentByContactId(EmployeeUtils.getCurrentContactId()); -result.string(subject); \ No newline at end of file +result.string("test"); \ No newline at end of file