PM-1635 "PM-1635 y PM-1154" SOLVED

Issue:
    - PM-1635: No debe estar disponible la importacion de diagramas con extension .bpmn en ProcessMaker 2.9
    - PM-1154: When importing a .pmx (PM 3) process into PM 2.8 Community, it opens the new BPMN designer
Cause:
    Ninguna
Solution:
    Se a agregado validacion de la siguiente manera:
        - Si la version es >= 3 entonces se aceptan archivos con la extension ----> .pm, .pmx, .bpmn
        - Si la version es < 3  entonces se aceptan archivos con la extension ----> .pm
This commit is contained in:
Victor Saisa Lopez
2015-03-23 20:34:18 -04:00
parent 285ca1f302
commit 5850759859
2 changed files with 14 additions and 1 deletions

View File

@@ -1213,7 +1213,7 @@ importProcess = function()
handler : function(){
var arrayMatch = [];
if ((arrayMatch = eval("/^.+\.(pm|pmx|bpmn)$/i").exec(Ext.getCmp("form-file").getValue()))) {
if ((arrayMatch = eval("/^.+\.(" + arrayPmFileExtension.join("|") + ")$/i").exec(Ext.getCmp("form-file").getValue()))) {
var fileExtension = arrayMatch[1];
switch (fileExtension) {