0017680: "processmaker workspace-restore" tries to restore when no workspace is specified SOLVED
al colocar el comando de restore sin un workspace daba un error poco entendible se soluciono agregando una condicion con la cual si al ingresar el comando sin especificar el nombre del workspace votara un mensaje diciendo que falta especificar el workspace
This commit is contained in:
@@ -505,6 +505,8 @@ function run_workspace_backup($args, $opts) {
|
||||
}
|
||||
|
||||
function run_workspace_restore($args, $opts) {
|
||||
if (sizeof($args) > 0) {
|
||||
|
||||
$filename = $args[0];
|
||||
|
||||
G::verifyPath(PATH_DATA . 'upgrade', true);
|
||||
@@ -547,6 +549,9 @@ function run_workspace_restore($args, $opts) {
|
||||
workspaceTools::restore($filename, $workspace, $dstWorkspace, $overwrite, $lang, $port );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new Exception("No workspace specified for restore");
|
||||
}
|
||||
}
|
||||
|
||||
function runStructureDirectories($command, $args) {
|
||||
|
||||
Reference in New Issue
Block a user