From f7c119e48c47ab8fef2630644bafee4ccb7c506b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 24 Feb 2021 13:02:36 +0100 Subject: [PATCH] Fix json decode --- htdocs/public/project/new.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/public/project/new.php b/htdocs/public/project/new.php index caee1a6235b..39c0e952880 100644 --- a/htdocs/public/project/new.php +++ b/htdocs/public/project/new.php @@ -144,7 +144,7 @@ if (GETPOST('action') == 'addlead') { $entityBody = file_get_contents('php://input'); if ($entityBody) { - $arrayofdata = dol_json_decode($entityBody, true); + $arrayofdata = json_decode($entityBody, true); } print 'Date received and lead created';