Merged in bugfix/PMCORE-2056 (pull request #7443)

PMCORE-2056 My case note, it shows empty, when I enter data in the following way "<text ->"

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-08-19 18:31:08 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -133,6 +133,9 @@ function openCaseNotesWindow(appUid1, delIndex, modalSw, appTitle, proUid, taskU
prepareData: function(data){
var i;
data.user = _FNF(data.USR_EMAIL, data.USR_FIRSTNAME, data.USR_LASTNAME);
//the 'NOTE_CONTENT' is used directly in an HTML template, so reserved characters
//must be converted to HTML entities.
data.NOTE_CONTENT = Ext.util.Format.htmlEncode(data.NOTE_CONTENT);
data.NOTE_CONTENT = data.NOTE_CONTENT.replace(/\n/g,' <br/>');
data.files = "";
for (i = 0; i < data.attachments.length; i += 1) {