Skip to content

Commit

Permalink
Merge pull request #8 from 1drop/task/PRS-358_add-missing-case-to-for…
Browse files Browse the repository at this point in the history
…m-handling

[TASK][PRS-358] add missing case for form response handling
  • Loading branch information
caora authored Mar 30, 2020
2 parents ed8890a + b5cd677 commit e80cfa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Service/HubspotFormService.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ public function submit(string $formIdentifier, array $formData)
try {
$apiResponse = $this->forms->submit($this->settings['api']['portalId'], $formIdentifier, $formData);
switch ($code = $apiResponse->getStatusCode()) {
case 200:
return '';
case 204:
return $this->getFormByIdentifier($formIdentifier)['inlineMessage'];
default:
Expand Down

0 comments on commit e80cfa7

Please sign in to comment.