From e4870cfa4425bc6cdb534a4c27d4815addd0d7c2 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 10 May 2016 14:26:45 +0530 Subject: [PATCH] add empty() check for CRM-18474 --- ang/crmUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ang/crmUtil.js b/ang/crmUtil.js index efe847cee7..8cb6242689 100644 --- a/ang/crmUtil.js +++ b/ang/crmUtil.js @@ -16,7 +16,7 @@ var deferred = $q.defer(); var p; var backend = crmApi.backend || CRM.api3; - if (params.body_html) { + if (params && params.body_html) { // CRM-18474 - remove Unicode Character 'LINE SEPARATOR' (U+2028) // and 'PARAGRAPH SEPARATOR' (U+2029) from the html if present. params.body_html = params.body_html.replace(/([\u2028]|[\u2029])/g, '\n'); -- 2.25.1