From c9facfb8dc6e6f9fa6e3fcd6963d36ef674111d1 Mon Sep 17 00:00:00 2001 From: Victor Saisa Lopez Date: Thu, 19 Jul 2012 15:32:19 -0400 Subject: [PATCH] BUG 8823 "No funcionan las conexiones a bases de datos..." SOLVED - Function "executeQuery" in triggers is not working properly with external database, when run through Web Services with the functions "executeTrigger" or "routeCase" - Problem solved, settled the session variables required by the method Propel::getConnection --- workflow/engine/classes/class.wsBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/engine/classes/class.wsBase.php b/workflow/engine/classes/class.wsBase.php index b976a6143..3fecac89f 100755 --- a/workflow/engine/classes/class.wsBase.php +++ b/workflow/engine/classes/class.wsBase.php @@ -1777,7 +1777,7 @@ class wsBase $appFields["APP_DATA"]["APPLICATION"] = $caseId; if (!isset($_SESSION["PROCESS"])) { - $_SESSION["PROCESS"] = $appFields["APP_DATA"]["PROCESS"]; + $_SESSION["PROCESS"] = $appFields["PRO_UID"]; } if ($bExecuteTriggersBeforeAssignment) { @@ -2159,7 +2159,7 @@ class wsBase $appFields["APP_DATA"]["APPLICATION"] = $caseId; if (!isset($_SESSION["PROCESS"])) { - $_SESSION["PROCESS"] = $appFields["APP_DATA"]["PROCESS"]; + $_SESSION["PROCESS"] = $appFields["PRO_UID"]; } //executeTrigger