fix: normalize non-numeric body dimension values of existing drafts

This commit is contained in:
Björn Fromme
2026-05-28 15:35:34 +02:00
parent 02b1cbfd6c
commit ee8c6a6545
5 changed files with 148 additions and 0 deletions
+7
View File
@@ -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