BUG 9056 "Con el nuevo skin de PM no se pueden crear nuevos..." SOLVED

- En la version processmaker-2.0.40-testing.3 no se puede crear nuevos workspaces
- El problema ya esta resuelto, para mas informacion ver el siguiente commit http://git.colosa.net/?p=processmaker.git;a=commitdiff;h=9763b67fa7d26f14ac5afb7a851604539d96122f
- Se realizo cambios para el correcto funcionamiento del checkbox "Drop database if exists"
This commit is contained in:
Victor Saisa Lopez
2012-04-26 18:10:37 -04:00
parent 503619395e
commit b1c122d7a5

View File

@@ -153,7 +153,8 @@ class Installer
private function make_site()
{
$test = $this->create_site_test();
if($test['created']===true)
if($test["created"] == true || $this->options["advanced"]["ao_db_drop"] == true)
{
/* Check if the hostname is local (localhost or 127.0.0.1) */
$islocal = (strcmp(substr($this->options['database']['hostname'], 0, strlen('localhost')),'localhost')===0) ||
@@ -166,9 +167,11 @@ class Installer
$schema = "schema.sql";
$values = "insert.sql";
if($this->options['advanced']['ao_db_drop']===true) {
/* Drop databases */
//Delete workspace directory if exists
//Drop databases
$this->run_query("DROP DATABASE IF EXISTS ".$wf, "Drop database $wf");
$this->run_query("DROP DATABASE IF EXISTS ".$rb, "Drop database $rb");
$this->run_query("DROP DATABASE IF EXISTS ".$rp, "Drop database $rp");