Skip to content

Commit 0d7635d

Browse files
committed
Handle phoneNumber assignment in advanced queue job
1 parent bfadd69 commit 0d7635d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/os2forms_fbs_handler/src/Plugin/AdvancedQueue/JobType/FbsCreateUser.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ public function process(Job $job): JobResult {
116116
'receiveNotification' => TRUE,
117117
],
118118
];
119+
if (isset($data['barn_tlf'])) {
120+
$patron->phoneNumber = $data['barn_tlf'];
121+
}
119122
$patron->receiveEmail = TRUE;
120123
$patron->pincode = $data['pinkode'];
121124

@@ -136,6 +139,9 @@ public function process(Job $job): JobResult {
136139
$patron->receiveEmail = TRUE;
137140
$patron->personId = $data['barn_cpr'];
138141
$patron->pincode = $data['pinkode'];
142+
if (isset($data['barn_tlf'])) {
143+
$patron->phoneNumber = $data['barn_tlf'];
144+
}
139145

140146
$fbs->createPatronWithGuardian($patron, $guardian);
141147
}

0 commit comments

Comments
 (0)