Skip to content

Commit

Permalink
Merge pull request #109 from bigperson/master
Browse files Browse the repository at this point in the history
fixed bug, not working final statuses for new pipeline
  • Loading branch information
bessudnov authored Aug 17, 2020
2 parents b9b6c90 + d63b563 commit cfc6bc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AmoCRM/Models/Leads/Pipelines/Statuses/StatusModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ public function toApi(?string $requestId = "0"): array
{
$result = [];

if (!is_null($this->getId()) && !$this->getPipelineId()) {
$result['id'] = $this->getId();
}

if (!is_null($this->getName())) {
$result['name'] = $this->getName();
}
Expand Down

0 comments on commit cfc6bc2

Please sign in to comment.