diff --git a/entity/Email_entity/entityfields/documenttemplates/children/documenttemplatetypeclassification_param/valueProcess.js b/entity/Email_entity/entityfields/documenttemplates/children/documenttemplatetypeclassification_param/valueProcess.js index 1ee6655bbafe8bd5e3b1bf5f575de8d793b947cc..70e703a7f3b161a4bcbdfaf0efac2df5a9f70b89 100644 --- a/entity/Email_entity/entityfields/documenttemplates/children/documenttemplatetypeclassification_param/valueProcess.js +++ b/entity/Email_entity/entityfields/documenttemplates/children/documenttemplatetypeclassification_param/valueProcess.js @@ -1,4 +1,4 @@ import("system.vars"); import("system.result"); -result.string(vars.get("$field.documenttemplatetypeclassification")); \ No newline at end of file +result.string(vars.get("$param.DocumentTemplateTypeClassification_param")); \ No newline at end of file diff --git a/process/Email_lib/process.js b/process/Email_lib/process.js index 71cabd93f638f07c00e3c88c5f690197db5581cd..7e2adcf0baba3a0f3e5bdf943f8bb490c259b238 100644 --- a/process/Email_lib/process.js +++ b/process/Email_lib/process.js @@ -92,10 +92,10 @@ EmailWritingUtils.openMailTemplate = function (pToRecipients, pSenderContactId, * @param {String} pEmailFilename optional file name of the email. * @param {String} [pAdditionalPlaceholders] additional placeholders for the email * @param {Array[]} [pUpdateStatements] an array with update statements which will be executed after email is downloaded/sent. - * @param {String} pDocumentTemplateType The document template type (single or serial - <b><u><i>use keyword!</i></u></b>). + * @param {String} pDocumentTemplateTypeClassification The document template type classification. */ EmailWritingUtils.openNewMail = function (pToContactId, pToEmailAddress, pComingFrom, pAttachmentArray, pNotificationMsg, pEmailFilename, - pAdditionalPlaceholders, pUpdateStatements, pDocumentTemplateType) + pAdditionalPlaceholders, pUpdateStatements, pDocumentTemplateTypeClassification) { var params = { "ContactId_param" : pToContactId, @@ -105,7 +105,7 @@ EmailWritingUtils.openNewMail = function (pToContactId, pToEmailAddress, pComing "EmailFilename" : pEmailFilename, "AdditionalPlaceholders_param" : JSON.stringify(pAdditionalPlaceholders), "UpdateStatements_param" : JSON.stringify(pUpdateStatements), - "DocumentTemplateTypeClassification_param" : pDocumentTemplateType + "DocumentTemplateTypeClassification_param" : pDocumentTemplateTypeClassification }; if (pToEmailAddress)