Skip to content

Commit

Permalink
Parse response
Browse files Browse the repository at this point in the history
  • Loading branch information
rwhite27 committed Jan 8, 2020
1 parent eaaa398 commit 268f248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Zoho/CRM/Request/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ protected function parseResponseGetRecords()
*/
protected function parseResponsePostRecords()
{
$data = current($this->responseData['data']);
$responseData = current($this->responseData);
$data = current($responseData['data']);
$this->status = $data['status'];
$this->recordId = array_key_exists('id', $data['details']) ? $data['details']['id'] : null;
}
Expand Down

0 comments on commit 268f248

Please sign in to comment.