From 4cf0598dd2ab5424262d6e16ec0c2bb4c20b9efb Mon Sep 17 00:00:00 2001 From: Luis Fernando Saisa Lopez Date: Thu, 11 Jul 2013 13:10:50 -0400 Subject: [PATCH] BUG 12346 "Error creating Pm Tables using fields double,..." SOLVED - Error creating Pm Tables using fields double, real, smallint, tinyint and setting field size - Problem solved, When you create a PM Table to the add a new field type: Double, Real, Tinyint and Smallint, is disabled size and no longer displays the error. * Available from version ProcessMaker-2.5.2-testing.1 --- workflow/engine/templates/pmTables/edit.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/workflow/engine/templates/pmTables/edit.js b/workflow/engine/templates/pmTables/edit.js index 1aebe66d9..55d88e3d1 100755 --- a/workflow/engine/templates/pmTables/edit.js +++ b/workflow/engine/templates/pmTables/edit.js @@ -243,21 +243,30 @@ Ext.onReady(function(){ } //Numbers - if (selCombo == "INTEGER" || selCombo == "BIGINT" || selCombo == "TINYINT" || selCombo == "SMALLINT") { + if (selCombo == "INTEGER" || selCombo == "BIGINT") { //Enable All } - if (selCombo == "DECIMAL" || selCombo == "DOUBLE" || selCombo == "FLOAT" || selCombo == "REAL") { + if (selCombo == "TINYINT" || selCombo == "SMALLINT") { + swSize = 0; + } + + if (selCombo == "DECIMAL" || selCombo == "FLOAT") { swPK = 0; swAI = 0; } + if (selCombo == "DOUBLE" || selCombo == "REAL") { + swSize = 0; + swPK = 0; + swAI = 0; + } + //String if (selCombo == "CHAR" || selCombo == "VARCHAR") { swAI = 0; } - if (selCombo == "LONGVARCHAR") { swPK = 0; swAI = 0; @@ -290,7 +299,6 @@ Ext.onReady(function(){ } else { Ext.getCmp("field_incre").disable(); Ext.getCmp("field_incre").setValue(false); - } if (swSize == 1) {