Skip to content
Snippets Groups Projects
Commit 7680120e authored by Martin Groppe's avatar Martin Groppe
Browse files

[Projekt: xRM-Marketing][TicketNr.: 2003343][[Bug] Serienmail, Fehler in...

[Projekt: xRM-Marketing][TicketNr.: 2003343][[Bug] Serienmail, Fehler in Sichtbarkeit  von Button "Open new mosaico template"]
parent 242b76d6
No related branches found
No related tags found
No related merge requests found
import("Bulkmail_lib");
import("system.vars");
import("system.neon");
import("system.result");
if (vars.get("$field.MOSAICOTEMPLATE_ID") || vars.get("$field.DOCUMENTTEMPLATE_ID") || vars.get("$field.content"))
if (vars.get("$field.MOSAICOTEMPLATE_ID") || vars.get("$field.DOCUMENTTEMPLATE_ID") || BulkMailUtils.isNotEmptyHtml(vars.get("$field.content")))
{
result.string( neon.COMPONENTSTATE_INVISIBLE);
}
......
......@@ -1169,6 +1169,18 @@ BulkMailUtils.startBulkmailWorkFlow = function(pMailLogId, pLinkId)
}
}
/* Checks if the Content is just the default empty html
*
* @param {String} pContent content
*
* @return {Boolean} true if content is just empty html tag
**/
BulkMailUtils.isNotEmptyHtml = function(pContent)
{
return pContent !== "<html></html>";
}
function SerialLetterUtils () {}
......
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