From a353e8ec99cb3a68c2f59dc18848b260885206ba Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Wed, 28 Sep 2011 14:32:17 -0400 Subject: [PATCH] BUG 0000 Fixed a missing object on exception catch --- workflow/engine/controllers/pmTablesProxy.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/workflow/engine/controllers/pmTablesProxy.php b/workflow/engine/controllers/pmTablesProxy.php index de8a57372..2713d4517 100755 --- a/workflow/engine/controllers/pmTablesProxy.php +++ b/workflow/engine/controllers/pmTablesProxy.php @@ -837,14 +837,13 @@ class pmTablesProxy extends HttpProxyController // if it is a propel exception message if (preg_match('/(.*)\s\[(.*):\s(.*)\]\s\[(.*):\s(.*)\]/', $e->getMessage(), $match)) { $result->message = $match[3]; - $result->type = ucfirst($pmTable->getDbConfig()->adapter); + $result->type = G::loadTranslation('ID_ERROR'); } else { $result->message = $e->getMessage(); $result->type = G::loadTranslation('ID_EXCEPTION'); } - - $result->trace = $e->getTraceAsString(); + //$result->trace = $e->getTraceAsString(); } return $result;