Skip to content
Snippets Groups Projects
Commit 48dc008c authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1051275][Serienbrief kann nicht erzeugt werden]

parent e98a9979
No related branches found
No related tags found
No related merge requests found
......@@ -14,5 +14,5 @@ var template = DocumentTemplate.fromUpload(bindata);
if (template.content)
{
SingleBinaryUtils.insert("SERIALLETTER", "DOCUMENT", letterId, template.content, template.filename, "");
SingleBinaryUtils.insert("SERIALLETTER", "SERIALLETTERFILE", letterId, template.content, template.filename, "");
}
\ No newline at end of file
......@@ -433,7 +433,7 @@ SerialLetterUtils.buildSerialLetter = function (pSerialLetterId, pRecipientIds)
var contactIds = contactIdsSelect.table();
return {
content : template.getSerialLetterByContactIds(contactIds),
content : template.content,
filename : template.filename,
title : title
};
......
......@@ -269,7 +269,8 @@ DocumentTemplate.loadTemplate = function (pAssignmentRowId, pAssignmentTable, pR
var mimeType = templateDocument[0][db.BINARY_MIMETYPE];
var type = DocumentTemplate.types.fromBinaryMetadata(templateDocument[0]);
if (pResolveSubtemplates == undefined) pResolveSubtemplates = true;
if (pResolveSubtemplates == undefined)
pResolveSubtemplates = true;
return new DocumentTemplate(db.getBinaryContent(binaryId, alias), type, filename, pResolveSubtemplates, templateId, mimeType);
}
......
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