From 890454c02adde9e5743ee75cd77b35a48c6eb0bd Mon Sep 17 00:00:00 2001 From: jennylee Date: Mon, 18 Feb 2013 11:59:36 -0400 Subject: [PATCH] BUG 9896 Error message when restoring a workspace, that truncates the restore. When restoring a workspace, there is an error message: 'Could not create the directory....' that truncates the restore. So a validation was added to create the folder that was not finding when doing the restore. --- workflow/engine/bin/tasks/cliWorkspaces.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/workflow/engine/bin/tasks/cliWorkspaces.php b/workflow/engine/bin/tasks/cliWorkspaces.php index 2befbe9ab..3533d399e 100755 --- a/workflow/engine/bin/tasks/cliWorkspaces.php +++ b/workflow/engine/bin/tasks/cliWorkspaces.php @@ -415,10 +415,7 @@ function run_workspace_backup($args, $opts) { function run_workspace_restore($args, $opts) { $filename = $args[0]; - if(!file_exists(PATH_DATA . 'upgrade')) { - print_r(PATH_DATA . 'upgrade'); - G::verifyPath(PATH_DATA . 'upgrade', true); - } + G::verifyPath(PATH_DATA . 'upgrade', true); if (strpos($filename, "/") === false && strpos($filename, '\\') === false) { $filename = PATH_DATA . "backups/$filename";