From 184149a1bc119fb945c4abae2e75b6fde466bc9e Mon Sep 17 00:00:00 2001 From: jennylee Date: Wed, 23 Jan 2013 09:36:51 -0400 Subject: [PATCH] BUG 9873 Error creating Dynaform from a PM Table. When adding a field, the 'Field Name' must be an string without spaces in the middle, because this makes the name of some funtions were generated wrong, like getColosa Email() when it must be like getColosaEmail() or getColosa_Email(). So, this field in the creating PM Table form, was validated to transform any string into a string without spaces. --- workflow/engine/templates/pmTables/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/templates/pmTables/edit.js b/workflow/engine/templates/pmTables/edit.js index 855b4ca71..0030798a6 100755 --- a/workflow/engine/templates/pmTables/edit.js +++ b/workflow/engine/templates/pmTables/edit.js @@ -162,7 +162,7 @@ Ext.onReady(function(){ allowBlank: true, listeners:{ change: function(f,e){ - this.setValue(this.getValue().replace(" ","").toUpperCase()); + this.setValue(this.getValue().replace(/\s/g,'').toUpperCase()); } } }