Merged in bugfix/PMCORE-4261 (pull request #8748)

PMCORE-4261 Comporium - Report Table Error
This commit is contained in:
Julio Cesar Laura Avendaño
2023-08-29 13:04:48 +00:00

View File

@@ -432,11 +432,13 @@ Ext.onReady(function () {
Ext.getCmp("sizeEdit").setValue('');
}
if (Ext.getCmp("field_incre")) {
Ext.getCmp("field_incre").enable();
if (defaultValue) {
Ext.getCmp("field_incre").setValue(false);
}
}
}
if (valueType === 'CHAR' || valueType === 'VARCHAR' || valueType === 'LONGVARCHAR') {
Ext.getCmp("sizeEdit").enable();
@@ -446,19 +448,23 @@ Ext.onReady(function () {
Ext.getCmp("sizeEdit").setValue('');
}
if (Ext.getCmp("field_incre")) {
Ext.getCmp("field_incre").disable();
Ext.getCmp("field_incre").setValue(false);
}
}
if (valueType === 'BOOLEAN' || valueType === 'DATE' || valueType === 'DATETIME' || valueType === 'TIME' || valueType === 'DECIMAL' || valueType === 'DOUBLE' || valueType === 'FLOAT' || valueType === 'REAL') {
Ext.getCmp("sizeEdit").disable();
Ext.getCmp("sizeEdit").setValue('');
if (Ext.getCmp("field_incre")) {
Ext.getCmp("field_incre").disable();
Ext.getCmp("field_incre").setValue(false);
}
}
}
}
//if permissions plugin is enabled
if (TABLE !== false && TABLE.ADD_TAB_TAG == 'plugin@simplereport') {
@@ -1342,12 +1348,14 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldIndex, fieldInc, sizeEdi
fieldIndex.setValue(false);
}
/*----------------------------------********---------------------------------*/
if (typeof fieldInc !== 'undefined') {
if (swAI == 1) {
fieldInc.enable();
} else {
fieldInc.disable();
fieldInc.setValue(false);
}
}
if (swSize == 1) {
sizeEdit.enable();