feat: update personal data of canceled participants as well
addresses #869bze0kq
This commit is contained in:
@@ -21,7 +21,7 @@ class PersonalDataSynchronizer
|
||||
/**
|
||||
* Updates participant personal data from form input.
|
||||
*
|
||||
* Processes all active participants (status 'F' or 'A'). Skips canceled participants (status 'S').
|
||||
* Processes all participants regardless of status, including canceled participants (status 'S').
|
||||
* Updates all personal data fields and communication information.
|
||||
*
|
||||
* Also fills missing mandatory fields on the applicant object for company bookings
|
||||
@@ -41,13 +41,6 @@ class PersonalDataSynchronizer
|
||||
$this->fillMissingApplicantFields($bookingData);
|
||||
|
||||
foreach ($participants as $participant) {
|
||||
// For canceled participants, only ensure mandatory fields have defaults
|
||||
// Skip other field updates as their data cannot be edited
|
||||
if ('S' === $participant->status) {
|
||||
$this->fillMissingParticipantFields($bookingData->participants[$participant->index]);
|
||||
continue;
|
||||
}
|
||||
|
||||
$bookingData->participants[$participant->index]->firstName = $participant->firstName;
|
||||
$bookingData->participants[$participant->index]->name = $participant->lastName;
|
||||
$bookingData->participants[$participant->index]->dateOfBirth = $participant->dateOfBirth;
|
||||
|
||||
Reference in New Issue
Block a user