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,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) {