Merge pull request #238 from purplespider/ss5-fix-json2array

SS5 Fix: Replace json2array with json_decode
This commit is contained in:
Guy Sartorelli 2023-10-18 15:06:03 +13:00 committed by GitHub
commit 741a20272a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ class BulkUploadHandler extends RequestHandler
if ($uploadResponse->getStatusCode() == 200)
{
$responseData = Convert::json2array($uploadResponse->getBody());
$responseData = json_decode($uploadResponse->getBody(), true);
$responseData = array_shift($responseData);
$record = $this->createDataObject($responseData['id']);