BUG 15012 "When creating a dynaform with the character..." SOLVED
- When creating a dynaform with the character "&", the field handlers not working. - Problema resuelto, el problema que se teníera lo siguiente cuando se utiliza el "&" en el tílo de un dynaform, cuando se enviaba los datos via GET, el "&" lo interpretaba como un separador de variables y esto ocasionaba la division de los datos que se enviaba. Se valida los datos enviados via GET codificáolos y al recibir estos datos se los decodifica
This commit is contained in:
@@ -13,7 +13,7 @@ var lastTypeSelected = '';
|
||||
var sessionPersits = function() {
|
||||
var rpc = new leimnud.module.rpc.xmlhttp({
|
||||
url: '../services/sessionPersists',
|
||||
args: 'dynaformEditorParams=' + dynaformEditorParams + (lastActionPerformed != '' ? '&DYN_UID=' + __DYN_UID__ : ''),
|
||||
args: "dynaformEditorParams=" + encodeURIComponent(dynaformEditorParams) + ((lastActionPerformed != "")? "&DYN_UID=" + __DYN_UID__ : ""),
|
||||
async: false
|
||||
});
|
||||
rpc.make();
|
||||
@@ -565,7 +565,7 @@ var dynaformEditor={
|
||||
// lineNumbers: true,
|
||||
// lineWrapping: true });
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
} else {
|
||||
showRowById('JS_TITLE');
|
||||
@@ -774,7 +774,7 @@ var dynaformEditor={
|
||||
}
|
||||
}
|
||||
this.currentJS=field.value;
|
||||
|
||||
|
||||
var res=this.ajax.get_javascripts(this.A,field.value);
|
||||
if(field.value == ''){
|
||||
if( typeof(res.aOptions[0]) !== "undefined" && res.aOptions[0].value != '___pm_boot_strap___'){
|
||||
@@ -831,9 +831,9 @@ var dynaformEditor={
|
||||
}
|
||||
}
|
||||
var field=getField("JS_LIST","dynaforms_JSEditor");
|
||||
|
||||
|
||||
var value=field.value;
|
||||
|
||||
|
||||
if (this.currentJS)
|
||||
{
|
||||
field.value=this.currentJS;
|
||||
|
||||
Reference in New Issue
Block a user