From 5193a261b90fe502d91ac5084cef71194c42c935 Mon Sep 17 00:00:00 2001 From: jennylee Date: Tue, 22 Apr 2014 17:01:40 -0400 Subject: [PATCH] BUG-14530 The Title in the process list Designer Tab reads the HTML like a code. This was fixed just aplaying Ext.util.Format.htmlEncode(v). --- workflow/engine/templates/processes/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/templates/processes/main.js b/workflow/engine/templates/processes/main.js index 50e9a7f1f..db9d00673 100755 --- a/workflow/engine/templates/processes/main.js +++ b/workflow/engine/templates/processes/main.js @@ -202,7 +202,7 @@ Ext.onReady(function(){ // TODO Labels for var 'type' are hardcoded, they must be replaced on the future var color = r.get('PROJECT_TYPE') == 'bpmn'? 'green': 'blue'; var type = r.get('PROJECT_TYPE') == 'bpmn'? ' (BPMN Project)': ''; - return v + ' ' + String.format("{1}", color, type); + return Ext.util.Format.htmlEncode(v) + ' ' + String.format("{1}", color, type); }}, {header: _('ID_TYPE'), dataIndex: 'PROJECT_TYPE', width: 60, hidden:false}, {header: _('ID_CATEGORY'), dataIndex: 'PRO_CATEGORY_LABEL', width: 100, hidden:false},