From b1c122d7a567cf6b30fde0fa35cf3ee382d9d16f Mon Sep 17 00:00:00 2001 From: Victor Saisa Lopez Date: Thu, 26 Apr 2012 18:10:37 -0400 Subject: [PATCH] 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" --- workflow/engine/classes/class.Installer.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/workflow/engine/classes/class.Installer.php b/workflow/engine/classes/class.Installer.php index 34915109e..1835ef21a 100755 --- a/workflow/engine/classes/class.Installer.php +++ b/workflow/engine/classes/class.Installer.php @@ -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");