Skip to content

Commit

Permalink
Merge pull request #11 from SonarSoftwareInc/ab5796-customer_portal_c…
Browse files Browse the repository at this point in the history
…ant_add_or_update_phone_number_from_the_portal

AB#5796 customer portal cant add or update phone number from the portal
  • Loading branch information
cjw6k authored Aug 29, 2023
2 parents d67f3b8 + 26be809 commit b7c1922
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Helpers/HttpHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,13 @@ private function transformErrorToMessage($jsonDecodedObject)
$messageArray = [];
foreach ($message as $key => $value)
{
array_push($messageArray,$value);
if (is_array($value)) {
foreach ($value as $subValue) {
$messageArray[] = $subValue;
}
} else {
$messageArray[] = $value;
}
}
return implode(", ",$messageArray);
}
Expand Down

0 comments on commit b7c1922

Please sign in to comment.