fix: insurance ids are strings

This commit is contained in:
Björn Fromme
2026-01-07 19:50:41 +01:00
parent 58ec94eaeb
commit d603e57c62
+2 -2
View File
@@ -431,9 +431,9 @@ class BookingEditDraftService
/**
* Resolves an insurance ID to an Insurance object.
*/
private function resolveInsurance(?int $insuranceId, Travel $travel): ?object
private function resolveInsurance(?string $insuranceId, Travel $travel): ?object
{
if (null === $insuranceId) {
if (null === $insuranceId || '' === $insuranceId) {
return null;
}