Skip to content

Commit c7b8a8b

Browse files
author
Stanislav Kutasevits
committed
S2FRMS-40 - Address name protection not set fix
1 parent dccbcf0 commit c7b8a8b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Plugin/os2web/DataLookup/ServiceplatformenCPRExtended.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ public function lookup($cpr, $fetchChildren = TRUE, $allowCprTestModeReplace = T
165165
}
166166

167167
if ($persondata->adressebeskyttelse) {
168-
if ($persondata->adressebeskyttelse->beskyttet) {
169-
$cprResult->setNameAddressProtected(TRUE);
170-
}
168+
$cprResult->setNameAddressProtected($persondata->adressebeskyttelse->beskyttet ?? FALSE);
171169
}
172170

173171
$address = $result['adresse'];

0 commit comments

Comments
 (0)