MT-85: The same validation has been added to the keep uid process.
This commit is contained in:
@@ -234,7 +234,7 @@ abstract class Importer
|
||||
$granularObj = new \ProcessMaker\BusinessModel\Migrator\GranularImporter();
|
||||
$newObjectArray = $objectsToImport;
|
||||
$projectUid = $this->importData['tables']['bpmn']["project"][0]["prj_uid"];
|
||||
$processGranulate = $granularObj->validateImportData($objectsToImport, $generateUid);
|
||||
$processGranulate = $granularObj->validateImportData($objectsToImport);
|
||||
if($generateUid){
|
||||
$result = $granularObj->regenerateAllUids($this->importData, $generateUid);
|
||||
$this->importData = $result['data'];
|
||||
|
||||
@@ -8,9 +8,6 @@ var processesGrid,
|
||||
winDesigner,
|
||||
newTypeProcess,
|
||||
affectedGroups,
|
||||
exportButton,
|
||||
exportMenu,
|
||||
exportComponent,
|
||||
processObjectsArray;
|
||||
|
||||
/**
|
||||
@@ -26,56 +23,6 @@ importProcessGlobal.isGranularImport = false;
|
||||
importProcessGlobal.objectGranularImport;
|
||||
importProcessGlobal.objectsToImport = [];
|
||||
|
||||
exportButton = {
|
||||
id: "export",
|
||||
disabled: true,
|
||||
text: _("ID_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "/images/export.png",
|
||||
handler: function () {
|
||||
exportProcess();
|
||||
}
|
||||
};
|
||||
/*----------------------------------********---------------------------------*/
|
||||
/**Begin enterprise export component**/
|
||||
exportMenu = {
|
||||
xtype: "tbsplit",
|
||||
id: "export",
|
||||
disabled: true,
|
||||
text: _("ID_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "/images/export.png",
|
||||
menu: [
|
||||
{
|
||||
text: _("ID_NORMAL_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "",
|
||||
handler: function ()
|
||||
{
|
||||
exportProcess();
|
||||
}
|
||||
}, {
|
||||
text: _("ID_GRANULAR_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "",
|
||||
handler: function ()
|
||||
{
|
||||
exportImportProcessObjects('export');
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
/**End enterprise export component**/
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
exportComponent = exportButton;
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
/**Begin enterprise component assignment**/
|
||||
exportComponent = exportMenu;
|
||||
/**End enterprise component assignment**/
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
new Ext.KeyMap(document, {
|
||||
key: Ext.EventObject.F5,
|
||||
fn: function(keycode, e) {
|
||||
@@ -408,9 +355,33 @@ Ext.onReady(function(){
|
||||
handler:deleteProcess
|
||||
},{
|
||||
xtype: 'tbseparator'
|
||||
},
|
||||
exportComponent
|
||||
,{
|
||||
},{
|
||||
xtype: "tbsplit",
|
||||
id: "export",
|
||||
disabled: true,
|
||||
text: _("ID_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "/images/export.png",
|
||||
menu: [
|
||||
{
|
||||
text: _("ID_NORMAL_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "",
|
||||
handler: function ()
|
||||
{
|
||||
exportProcess();
|
||||
}
|
||||
}, {
|
||||
text: _("ID_GRANULAR_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "",
|
||||
handler: function ()
|
||||
{
|
||||
exportImportProcessObjects('export');
|
||||
}
|
||||
}
|
||||
]
|
||||
},{
|
||||
text: _('ID_IMPORT'),
|
||||
iconCls: 'silk-add',
|
||||
icon: '/images/import.gif',
|
||||
|
||||
Reference in New Issue
Block a user