Merged in bugfix/PMCORE-4261 (pull request #8748)
PMCORE-4261 Comporium - Report Table Error
This commit is contained in:
@@ -432,11 +432,13 @@ Ext.onReady(function () {
|
|||||||
Ext.getCmp("sizeEdit").setValue('');
|
Ext.getCmp("sizeEdit").setValue('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Ext.getCmp("field_incre")) {
|
||||||
Ext.getCmp("field_incre").enable();
|
Ext.getCmp("field_incre").enable();
|
||||||
if (defaultValue) {
|
if (defaultValue) {
|
||||||
Ext.getCmp("field_incre").setValue(false);
|
Ext.getCmp("field_incre").setValue(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (valueType === 'CHAR' || valueType === 'VARCHAR' || valueType === 'LONGVARCHAR') {
|
if (valueType === 'CHAR' || valueType === 'VARCHAR' || valueType === 'LONGVARCHAR') {
|
||||||
Ext.getCmp("sizeEdit").enable();
|
Ext.getCmp("sizeEdit").enable();
|
||||||
@@ -446,19 +448,23 @@ Ext.onReady(function () {
|
|||||||
Ext.getCmp("sizeEdit").setValue('');
|
Ext.getCmp("sizeEdit").setValue('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Ext.getCmp("field_incre")) {
|
||||||
Ext.getCmp("field_incre").disable();
|
Ext.getCmp("field_incre").disable();
|
||||||
Ext.getCmp("field_incre").setValue(false);
|
Ext.getCmp("field_incre").setValue(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (valueType === 'BOOLEAN' || valueType === 'DATE' || valueType === 'DATETIME' || valueType === 'TIME' || valueType === 'DECIMAL' || valueType === 'DOUBLE' || valueType === 'FLOAT' || valueType === 'REAL') {
|
if (valueType === 'BOOLEAN' || valueType === 'DATE' || valueType === 'DATETIME' || valueType === 'TIME' || valueType === 'DECIMAL' || valueType === 'DOUBLE' || valueType === 'FLOAT' || valueType === 'REAL') {
|
||||||
Ext.getCmp("sizeEdit").disable();
|
Ext.getCmp("sizeEdit").disable();
|
||||||
Ext.getCmp("sizeEdit").setValue('');
|
Ext.getCmp("sizeEdit").setValue('');
|
||||||
|
|
||||||
|
if (Ext.getCmp("field_incre")) {
|
||||||
Ext.getCmp("field_incre").disable();
|
Ext.getCmp("field_incre").disable();
|
||||||
Ext.getCmp("field_incre").setValue(false);
|
Ext.getCmp("field_incre").setValue(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//if permissions plugin is enabled
|
//if permissions plugin is enabled
|
||||||
if (TABLE !== false && TABLE.ADD_TAB_TAG == 'plugin@simplereport') {
|
if (TABLE !== false && TABLE.ADD_TAB_TAG == 'plugin@simplereport') {
|
||||||
@@ -1342,12 +1348,14 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldIndex, fieldInc, sizeEdi
|
|||||||
fieldIndex.setValue(false);
|
fieldIndex.setValue(false);
|
||||||
}
|
}
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
if (typeof fieldInc !== 'undefined') {
|
||||||
if (swAI == 1) {
|
if (swAI == 1) {
|
||||||
fieldInc.enable();
|
fieldInc.enable();
|
||||||
} else {
|
} else {
|
||||||
fieldInc.disable();
|
fieldInc.disable();
|
||||||
fieldInc.setValue(false);
|
fieldInc.setValue(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (swSize == 1) {
|
if (swSize == 1) {
|
||||||
sizeEdit.enable();
|
sizeEdit.enable();
|
||||||
|
|||||||
Reference in New Issue
Block a user