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
This commit is contained in:
Luis Fernando Saisa Lopez
2013-07-11 13:10:50 -04:00
parent c8fc67ca73
commit 4cf0598dd2

View File

@@ -243,11 +243,21 @@ Ext.onReady(function(){
} }
//Numbers //Numbers
if (selCombo == "INTEGER" || selCombo == "BIGINT" || selCombo == "TINYINT" || selCombo == "SMALLINT") { if (selCombo == "INTEGER" || selCombo == "BIGINT") {
//Enable All //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; swPK = 0;
swAI = 0; swAI = 0;
} }
@@ -257,7 +267,6 @@ Ext.onReady(function(){
swAI = 0; swAI = 0;
} }
if (selCombo == "LONGVARCHAR") { if (selCombo == "LONGVARCHAR") {
swPK = 0; swPK = 0;
swAI = 0; swAI = 0;
@@ -290,7 +299,6 @@ Ext.onReady(function(){
} else { } else {
Ext.getCmp("field_incre").disable(); Ext.getCmp("field_incre").disable();
Ext.getCmp("field_incre").setValue(false); Ext.getCmp("field_incre").setValue(false);
} }
if (swSize == 1) { if (swSize == 1) {