Skip to content
Snippets Groups Projects
Commit a66dd588 authored by Andreas Fräder's avatar Andreas Fräder
Browse files

Hotfix mosaico_rest

parent cd2dab36
No related branches found
No related tags found
No related merge requests found
import("DocumentTemplate_lib");
import("Keyword_lib");
import("system.vars");
import("Placeholder_lib");
......@@ -80,7 +81,7 @@ function restget(pRequest)
{
responseBody = {"metadata": mosaicoTemplateData[0], "content": mosaicoTemplateData[1]};
}
responseBody.links = _getMosaicoLinks();
responseBody.placeholders = _getMosaicoPlaceholders(userName);
responseBody.colors = KeywordUtils.getEntryArray($KeywordRegistry.mosaicoColor());
......@@ -118,7 +119,7 @@ function _getMosaicoPlaceholders(pUserName)
{
var employee = tools.getUserByAttribute(tools.NAME, pUserName, tools.PROFILE_DEFAULT);
var employeeContactId = employee[tools.PARAMS][tools.CONTACTID];
var replacements = new DocumentTemplate().getReplacementsByContactIds([employeeContactId],null,true)
var replacements = new DocumentTemplate().getReplacementsByContactIds([employeeContactId],null,true)
var mosaicoPlaceholders = PlaceholderUtils.getPlaceholders()
......
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