Skip to content

Commit

Permalink
Merge pull request #78 from constantable/master
Browse files Browse the repository at this point in the history
ContactModel toApi method fix for last_name
  • Loading branch information
bessudnov authored Jul 22, 2020
2 parents cd02d7e + 4a253f0 commit 2923e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AmoCRM/Models/ContactModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ public function toApi(?string $requestId = "0"): array
}

if (!is_null($this->getLastName())) {
$result['first_name'] = $this->getLastName();
$result['last_name'] = $this->getLastName();
}

if (!is_null($this->getResponsibleUserId())) {
Expand Down

0 comments on commit 2923e77

Please sign in to comment.