From 09e5d6d29d5cfeeaa6dae168bb76fce662cea368 Mon Sep 17 00:00:00 2001
From: daniel <daniel@localhost>
Date: Mon, 3 Feb 2020 11:12:34 +0100
Subject: [PATCH] #1046801 - Fixed HTML in report description.

---
 process/Organisation_lib/process.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/process/Organisation_lib/process.js b/process/Organisation_lib/process.js
index a8e5c8facf..cc8c3aa447 100644
--- a/process/Organisation_lib/process.js
+++ b/process/Organisation_lib/process.js
@@ -149,20 +149,13 @@ OrgUtils.openOrgReport = function(pOrgId)
                     .where("CONTACT.ORGANISATION_ID", pOrgId)  //= all activities linked to the organization or an employee
                     .orderBy("ENTRYDATE desc")
                     .table();
-                    
-    var infoAsHtml = histData[0][4];
-    var infoWithoutHtml = text.html2text(infoAsHtml);
-    histData[0][4] = infoWithoutHtml;
     
     var dateFormat = translate.text("dd.MM.yyyy");
     histData.forEach(function (row) 
     {
         row[0] = datetime.toDate(row[0], dateFormat);
         // convert html to text
-        if (row[1] == $KeywordRegistry.activityCategory$mail())
-        {
-            row[4] = text.html2text(row[4]);
-        }
+        row[4] = text.html2text(row[4]);
         
         row[1] = KeywordUtils.getViewValue($KeywordRegistry.activityCategory(), row[1]);
         _joinArrayVals(row, 2, 2);
-- 
GitLab