From 0c090cf34616ef3dd8fc809bee893af410d71c97 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Tue, 3 Sep 2019 12:01:29 +0200
Subject: [PATCH] preset kind with mail if upload is html or txt

---
 .../DocumentTemplate_entity/entityfields/kind/valueProcess.js   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/entity/DocumentTemplate_entity/entityfields/kind/valueProcess.js b/entity/DocumentTemplate_entity/entityfields/kind/valueProcess.js
index 8e1ca1a199..261fb39d2f 100644
--- a/entity/DocumentTemplate_entity/entityfields/kind/valueProcess.js
+++ b/entity/DocumentTemplate_entity/entityfields/kind/valueProcess.js
@@ -15,6 +15,8 @@ if (vars.get("$this.value") == null && vars.get("$field.BINDATA"))
     switch (mimeType)
     {
         case MimeTypes.EML():
+        case MimeTypes.HTML():
+        case MimeTypes.TXT():
         case MimeTypes.MSG():
             kind = $KeywordRegistry.documentTemplateType$mail(); 
             break;
-- 
GitLab