MT-100 fix for extension .pmx and .pmx2
This commit is contained in:
@@ -991,9 +991,11 @@ var deleteCases = function(){
|
|||||||
function exportProcess() {
|
function exportProcess() {
|
||||||
var record = processesGrid.getSelectionModel().getSelections();
|
var record = processesGrid.getSelectionModel().getSelections();
|
||||||
|
|
||||||
if(record.length == 1) {
|
if (record.length == 1) {
|
||||||
if(Ext.getCmp('exportProcessObjectsWindow')) {
|
if (Ext.getCmp('exportProcessObjectsWindow')) {
|
||||||
Ext.getCmp('exportProcessObjectsWindow').close();
|
Ext.getCmp('exportProcessObjectsWindow').close();
|
||||||
|
} else {
|
||||||
|
processObjectsArray = '';
|
||||||
}
|
}
|
||||||
var myMask = new Ext.LoadMask(Ext.getBody(), {msg: _("ID_LOADING")});
|
var myMask = new Ext.LoadMask(Ext.getBody(), {msg: _("ID_LOADING")});
|
||||||
var proUid = record[0].get("PRO_UID");
|
var proUid = record[0].get("PRO_UID");
|
||||||
@@ -1014,7 +1016,12 @@ function exportProcess() {
|
|||||||
if (result.success) {
|
if (result.success) {
|
||||||
window.location = "../processes/processes_DownloadFile?file_hash=" + result.file_hash;
|
window.location = "../processes/processes_DownloadFile?file_hash=" + result.file_hash;
|
||||||
} else {
|
} else {
|
||||||
Ext.Msg.show({title: "", msg: result.message, icon: Ext.MessageBox.ERROR, buttons: Ext.MessageBox.OK});
|
Ext.Msg.show({
|
||||||
|
title: "",
|
||||||
|
msg: result.message,
|
||||||
|
icon: Ext.MessageBox.ERROR,
|
||||||
|
buttons: Ext.MessageBox.OK
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user