Skip to content

Commit

Permalink
Merge pull request #535 from kitos7/hotfix/pipeline_null_name_key
Browse files Browse the repository at this point in the history
Update PipelineModel.php
  • Loading branch information
bessudnov authored Nov 17, 2023
2 parents e6c81c3 + 97b5c17 commit a27c176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AmoCRM/Models/Leads/Pipelines/PipelineModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function fromArray(array $pipeline): self
$model = new self();

$model->setId($pipeline['id']);
$model->setName($pipeline['name']);
$model->setName((string)($pipeline['name'] ?? ''));
$model->setSort($pipeline['sort']);
$model->setAccountId($pipeline['account_id']);
$model->setIsMain($pipeline['is_main']);
Expand Down

0 comments on commit a27c176

Please sign in to comment.