BUG 8749 ProcessMaker misinterprets "%" (modulus operator) in JScript SOLVED.
- Processmaker treats the "%" (modulus operator) followed by a number in JavaScript as a reference to a special character. - Adjustment in the encodes characters in the Dynaform editor.
This commit is contained in:
@@ -150,7 +150,7 @@ var dynaformEditor={
|
||||
var xmlCode = this.getXMLCode();
|
||||
var todoRefreshXmlCode = xmlCode === null;
|
||||
if (todoRefreshXmlCode) return;
|
||||
var res = this.ajax.set_xmlcode(this.A,xmlCode.replace(/\+/g, '%2B'));
|
||||
var res = this.ajax.set_xmlcode(this.A, encodeURIComponent(xmlCode));
|
||||
if (res!=="") G.alert(res);
|
||||
},
|
||||
saveHtmlCode:function()
|
||||
@@ -168,7 +168,7 @@ var dynaformEditor={
|
||||
|
||||
if (field.value)
|
||||
{
|
||||
var res=this.ajax.set_javascript(this.A,field.value,code.replace(/\+/g, '%2B'));
|
||||
var res = this.ajax.set_javascript(this.A,field.value, encodeURIComponent(code));
|
||||
if (typeof(res["*message"])==="string")
|
||||
{
|
||||
G.alert(res["*message"]);
|
||||
|
||||
Reference in New Issue
Block a user