From 807aecec7b31b9107b642fbd827346c2d1aaa0ca Mon Sep 17 00:00:00 2001 From: jennylee Date: Mon, 30 Jun 2014 11:59:58 -0400 Subject: [PATCH] BUG_15194: Error inserting data to PM Table. The Json has some quotes that was causing troubles, because the stripslashes() function was been applicated before json_decode, so it was been applied twice. Removing stripslashes() function, this is already added in json_decode(). --- workflow/engine/controllers/pmTablesProxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/controllers/pmTablesProxy.php b/workflow/engine/controllers/pmTablesProxy.php index 0364b4d0c..945874bdc 100755 --- a/workflow/engine/controllers/pmTablesProxy.php +++ b/workflow/engine/controllers/pmTablesProxy.php @@ -549,7 +549,7 @@ class pmTablesProxy extends HttpProxyController require_once $sPath . $this->className . '.php'; - $rows = G::json_decode( stripslashes( $httpData->rows ) ); + $rows = G::json_decode( $httpData->rows ); if (is_array( $rows )) { foreach ($rows as $row) {