CLONE - 18567: upgrade [workspace] command block all the system

HOR-1422
CLONE - 18567: upgrade [workspace] command block all the system
This commit is contained in:
dheeyi william
2016-07-19 13:41:10 -04:00
parent 7592f29485
commit a60e196b3d
5 changed files with 44 additions and 18 deletions

View File

@@ -82,7 +82,14 @@ function run_upgrade($command, $args)
CLI::logging("UPGRADE", PROCESSMAKER_PATH . "upgrade.log");
CLI::logging("Checking files integrity...\n");
//setting flag to true to check into sysGeneric.php
$flag = G::isPMUnderUpdating(1);
$workspaces = get_workspaces_from_args($command);
$oneWorkspace = 'true';
if (count($workspaces) == 1) {
foreach ($workspaces as $index => $workspace) {
$oneWorkspace = $workspace->name;
}
}
$flag = G::isPMUnderUpdating(1, $oneWorkspace);
//start to upgrade
$checksum = System::verifyChecksum();
if ($checksum === false) {