Merged in darojas/processmaker/master-core (pull request #1233)
PM-1040. Remove code from the Community version. Fix 14636 New Functionality - To allow set index in tables.
This commit is contained in:
@@ -160,14 +160,12 @@ Ext.onReady(function(){
|
||||
hidden: true,
|
||||
hideable:false
|
||||
},
|
||||
/*----------------------------------********---------------------------------*/
|
||||
{
|
||||
id: 'field_index',
|
||||
dataIndex: 'field_index',
|
||||
hidden: true,
|
||||
hideable:false
|
||||
},
|
||||
/*----------------------------------********---------------------------------*/
|
||||
{
|
||||
id: 'field_null',
|
||||
dataIndex: 'field_null',
|
||||
@@ -306,7 +304,9 @@ Ext.onReady(function(){
|
||||
disabled: true,
|
||||
inputValue: 'always'
|
||||
}
|
||||
}, {
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
, {
|
||||
xtype: 'booleancolumn',
|
||||
header: _('ID_INDEX'),
|
||||
dataIndex: 'field_index',
|
||||
@@ -321,6 +321,7 @@ Ext.onReady(function(){
|
||||
inputValue: 'always'
|
||||
}
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
];
|
||||
|
||||
//if permissions plugin is enabled
|
||||
@@ -1074,12 +1075,14 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldNull, fieldPrimaryKey, f
|
||||
fieldPrimaryKey.setValue(false);
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (swI == 1) {
|
||||
fieldIndex.enable();
|
||||
} else {
|
||||
fieldIndex.disable();
|
||||
fieldIndex.setValue(false);
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
if (swAI == 1) {
|
||||
fieldInc.enable();
|
||||
|
||||
@@ -408,7 +408,9 @@ Ext.onReady(function(){
|
||||
disabled: true,
|
||||
inputValue: 'always'
|
||||
}
|
||||
}, {
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
, {
|
||||
xtype: 'booleancolumn',
|
||||
header: _('ID_INDEX'),
|
||||
dataIndex: 'field_index',
|
||||
@@ -423,6 +425,7 @@ Ext.onReady(function(){
|
||||
inputValue: 'always'
|
||||
}
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
];
|
||||
|
||||
function validateFieldSizeAutoincrement(valueType, defaultValue) {
|
||||
@@ -1300,14 +1303,14 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldIndex, fieldInc, sizeEdi
|
||||
swAI = 0;
|
||||
swI = 0;
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (swI == 1) {
|
||||
fieldIndex.enable();
|
||||
} else {
|
||||
fieldIndex.disable();
|
||||
fieldIndex.setValue(false);
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (swAI == 1) {
|
||||
fieldInc.enable();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user