From f30d27b52684fd2dbdc06f40cd1cfdc423e194e8 Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Date: Thu, 14 Feb 2013 10:43:05 -0400 Subject: [PATCH] BUG 10812 La secuencia del contador en el upgrade... SOLVED - Incorrect sequence. - Add validation. --- workflow/engine/bin/tasks/cliUpgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/engine/bin/tasks/cliUpgrade.php b/workflow/engine/bin/tasks/cliUpgrade.php index 152e1db20..567f6153b 100755 --- a/workflow/engine/bin/tasks/cliUpgrade.php +++ b/workflow/engine/bin/tasks/cliUpgrade.php @@ -105,11 +105,11 @@ function run_upgrade($command, $args) $count = count($workspaces); $first = true; $errors = false; - $countWorkspace = 1; + $countWorkspace = 0; $buildCacheView = array_key_exists("buildACV", $args); foreach ($workspaces as $index => $workspace) { try { - $countWorkspace = $countWorkspace + $index; + $countWorkspace++; CLI::logging("Upgrading workspaces ($countWorkspace/$count): " . CLI::info($workspace->name) . "\n"); $workspace->upgrade($first, $buildCacheView, $workspace->name); $workspace->close();