fix: normalize non-numeric body dimension values of existing drafts
This commit is contained in:
@@ -378,6 +378,13 @@ class BookingDto
|
||||
$this->$key = $value;
|
||||
}
|
||||
|
||||
foreach ($this->participants as $participant) {
|
||||
if ($participant instanceof ParticipantDto) {
|
||||
// Temporary cleanup for older serialized participants restored from session.
|
||||
$participant->normalizeBodyDimensions();
|
||||
}
|
||||
}
|
||||
|
||||
// Old sessions (before c373a989) still carry a full Travel object;
|
||||
// new sessions carry only the int ID. Handle both formats.
|
||||
// TODO: Remove Travel instance branch once all pre-deploy sessions have expired
|
||||
|
||||
Reference in New Issue
Block a user