BUG 13915 13915: The 'workspace-restore' action changes the actual files structure SOLVED

- The command ./processmaker workspace-restore always change the files directory structure to new estructure

- The original structure shold not be changed in the 'workspace-restore' command, for this purpose exists another command to execute this action when the user require this functionality
This commit is contained in:
Julio Cesar Laura
2014-01-17 14:39:29 -04:00
parent 19192dc89f
commit f43862af9b

View File

@@ -141,10 +141,10 @@ class workspaceTools
$this->dbHost = $values["DB_HOST"];
$this->dbUser = $values["DB_USER"];
$this->dbPass = $values["DB_PASS"];
$this->dbRbacHost = $values["DB_RBAC_HOST"];
$this->dbRbacName = $values["DB_RBAC_NAME"];
$this->dbRbacUser = $values["DB_RBAC_USER"];
$this->dbRbacHost = $values["DB_RBAC_HOST"];
$this->dbRbacName = $values["DB_RBAC_NAME"];
$this->dbRbacUser = $values["DB_RBAC_USER"];
$this->dbRbacPass = $values["DB_RBAC_PASS"];
return $this->dbInfo = $values;
@@ -361,7 +361,7 @@ class workspaceTools
}
return $this->db;
}
/**
* Close any database opened with getDatabase
*/
@@ -690,7 +690,7 @@ class workspaceTools
}
$oDataBase = $this->getDatabase($rbac);
$oDataBase->iFetchType = MYSQL_NUM;
$oDataBase->logQuery(count($changes));
@@ -1356,13 +1356,6 @@ class workspaceTools
$stop = microtime(true);
$final = $stop - $start;
CLI::logging("<*> Database Upgrade Process took $final seconds.\n");
$start = microtime(true);
CLI::logging("> Updating cases directories structure...\n");
$workspace->upgradeCasesDirectoryStructure($workspaceName);
$stop = microtime(true);
$final = $stop - $start;
CLI::logging("<*> Database Upgrade Structure Process took $final seconds.\n");
}
$start = microtime(true);
CLI::logging("> Updating cache view...\n");
@@ -1431,11 +1424,11 @@ class workspaceTools
return $result;
}
public function backupLogFiles()
{
$config = System::getSystemConfiguration();
clearstatcache();
$path = PATH_DATA . "log" . PATH_SEP;
$filePath = $path . "cron.log";