Skip to content

Commit f4e5dec

Browse files
committed
S2FRMS-40 fix guardians extracting
1 parent 0f42320 commit f4e5dec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Plugin/os2web/DataLookup/ServiceplatformenCPRExtended.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ class ServiceplatformenCPRExtended extends ServiceplatformenBase implements Data
3232
/**
3333
* Guardian other 1.
3434
*/
35-
const GUARDIAN_OTHER_1 = 1;
35+
const GUARDIAN_OTHER_1 = 5;
3636

3737
/**
3838
* Guardian other 2.
3939
*/
40-
const GUARDIAN_OTHER_2 = 1;
40+
const GUARDIAN_OTHER_2 = 6;
4141

4242
/**
4343
* Guardian mother 3.
@@ -251,7 +251,7 @@ public function lookup($cpr, $fetchChildren = TRUE, $allowCprTestModeReplace = T
251251
elseif ($relationshipGuardian->foraeldremyndighedtype == self::GUARDIAN_OTHER_1 || $relationshipGuardian->foraeldremyndighedtype == self::GUARDIAN_OTHER_2) {
252252
$guardian = [
253253
'type' => $relationshipGuardian->foraeldremyndighedtype,
254-
'cpr' => $relationshipGuardian->relationCpr,
254+
'cpr' => $relationshipGuardian->relationPersonnummer,
255255
];
256256

257257
$guardians[] = $guardian;

0 commit comments

Comments
 (0)