Skip to content
Snippets Groups Projects
Commit f1d771cc authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

Merge branch '2021.2_2001003_newActivity-TaskDescriptionFix_mw' into '2021.2'

[Projekt: xRM-ContactManagement][TicketNr.: 2001003][Beschreibungstext wird...

See merge request xrm/basic!1372
parents da52f61b e6f2a263
No related branches found
No related tags found
No related merge requests found
......@@ -4,4 +4,4 @@ import("Context_lib");
var subject = vars.get("$field.SUBJECT")
var infoText = vars.get("$field.DESCRIPTION");
ActivityUtils.createNewActivity(undefined, null, ContextUtils.getCurrentContextId(), vars.get("$field.TASKID"), subject, infoText);
\ No newline at end of file
ActivityUtils.createNewActivity(undefined, null, ContextUtils.getCurrentContextId(), vars.get("$field.TASKID"), subject, infoText, null, null, null, null, null, true);
\ No newline at end of file
......@@ -321,6 +321,10 @@ ActivityUtils.makeNoActityFilterConditionSql = function ()
* entryDate of an Visit<br>
* @param {String} pVisitPlanEntryId (optional) <p>
* visitPlanEntryId (needed to set the status of visits in visitPlanning)<br>
* @param {Boolean} pInfoIsHtml (optional) <p>
* defines if the given info is already html.<br>
* If not so it will be converted to html<br>
* <p>
* @static
* @example
* var content;
......@@ -342,15 +346,16 @@ ActivityUtils.makeNoActityFilterConditionSql = function ()
* $KeywordRegistry.activityDirection$outgoing(),
* [["Letter.docx", content, false]]);
*/
ActivityUtils.createNewActivity = function(pRowId, pAdditionalLinks, pParentContext, pParentId, pSubject, pInfo, pDirection, pDocuments, pCategory, pEntryDate, pVisitPlanEntryId)
ActivityUtils.createNewActivity = function(pRowId, pAdditionalLinks, pParentContext, pParentId, pSubject, pInfo, pDirection, pDocuments, pCategory, pEntryDate, pVisitPlanEntryId, pInfoIsHtml)
{
var params = {};
var infoHtml = pInfoIsHtml || false;
if (pDocuments)
params["PresetDocuments_param"] = JSON.stringify(pDocuments);
if (pSubject)
params["Subject_param"] = pSubject;
if (pInfo)
params["Info_param"] = text.text2html(pInfo.trim(), false);
params["Info_param"] = infoHtml ? pInfo : text.text2html(pInfo.trim(), false) ;
if (pDirection)
params["Direction_param"] = pDirection;
if (pCategory)
......
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