Skip to content

Commit

Permalink
S2FRMS-40 - handling children with empty name
Browse files Browse the repository at this point in the history
  • Loading branch information
stankut committed Feb 15, 2024
1 parent c7b8a8b commit f0a3948
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function lookup($cpr, $fetchChildren = TRUE, $allowCprTestModeReplace = T
$childCprResult = $this->lookup($relationshipChild->personnummer, FALSE, FALSE);

if ($childCprResult->isSuccessful() && $childCprResult->hasGuardian($cpr)) {
$child['name'] = $childCprResult->getName() ?? $childCprResult->getCpr();
$child['name'] = !empty($childCprResult->getName()) ? $childCprResult->getName() : $childCprResult->getCpr();

$child = [
'cpr' => $relationshipChild->personnummer,
Expand Down

0 comments on commit f0a3948

Please sign in to comment.