Skip to content
Snippets Groups Projects
Commit 4d4669ce authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

Bulkmail preview bugfixes & logging cleanup

parent df243d98
No related branches found
No related tags found
No related merge requests found
import("system.logging");
import("DocumentTemplate_lib");
import("system.neon");
import("system.vars");
......
......@@ -5,6 +5,6 @@ import("Document_lib");
import("system.vars");
import("DocumentTemplate_lib");
result.string(vars.get("$context.currentTemplateType") == DocumentTemplate.types.TXT// && vars.get("$sys.recordstate") != neon.OPERATINGSTATE_VIEW
result.string(vars.get("$context.currentTemplateType") == DocumentTemplate.types.TXT && (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
? "LONG_TEXT"
: "HTML");
\ No newline at end of file
import("system.logging");
import("Bulkmail_lib");
import("system.text");
import("Employee_lib");
......
......@@ -8,4 +8,6 @@ if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_VIEW &&
|| vars.get("$context.currentTemplateType") == DocumentTemplate.types.HTML)) // TODO: invisible for html as there are problems with images which are removed by the html-editor
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}
\ No newline at end of file
}
else
result.string(neon.COMPONENTSTATE_EDITABLE);
\ No newline at end of file
import("system.logging");
import("DocumentTemplate_lib");
import("system.vars");
import("Document_lib");
......
import("system.logging");
import("system.translate");
import("ActivityTask_lib");
import("system.util");
......
import("system.logging");
import("Binary_lib");
import("Communication_lib");
import("system.neon");
......@@ -777,7 +776,6 @@ DocumentTemplateUtils.updateTemplateData = function (pTemplateId, pFileUpload, p
*/
DocumentTemplateUtils.getTemplateContent = function (pTemplateId, pFileUpload)
{
logging.log(JSON.stringify([pTemplateId, pFileUpload.isFilled()], null, "\t"))
var type;
var bindata;
......@@ -802,8 +800,6 @@ DocumentTemplateUtils.getTemplateContent = function (pTemplateId, pFileUpload)
}
}
logging.log("asd" + JSON.stringify([type], null, "\t"))
if (type == DocumentTemplate.types.HTML || type == DocumentTemplate.types.TXT || type == DocumentTemplate.types.EML)
{
return [util.decodeBase64String(bindata), type];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment