diff --git a/app/model/Participant/Factory/ParticipantFactory.php b/app/model/Participant/Factory/ParticipantFactory.php index 922d4f19e..da4bb8a3a 100644 --- a/app/model/Participant/Factory/ParticipantFactory.php +++ b/app/model/Participant/Factory/ParticipantFactory.php @@ -32,7 +32,7 @@ public static function create(stdClass $skautisParticipant, Payment $payment): P $skautisParticipant->State ?? $skautisParticipant->PersonAddressState ?? '', isset($skautisParticipant->ID_Unit) ? (int) $skautisParticipant->ID_Unit : null, $skautisParticipant->Unit ?? '', - $skautisParticipant->UnitRegistrationNumber ?? '', + $skautisParticipant->UnitRegistrationNumber ?? $skautisParticipant->PersonUnitRegistrationNumber ?? '', (int) ($skautisParticipant->Days ?? 0), $payment, $skautisParticipant->Category ?? null,