chore: code cleanup

This commit is contained in:
Björn Fromme committed 2026-02-05 17:45:54 +01:00
1 parent 2f9930a240
commit 6adc0769c7
4 files changed
+11 -12

No files matched your search

@@ -1252,15 +1252,14 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
}
return [...$otherServices, $regularPkw];
} else {
// Discounted has availability, show only discounted (hide regular)
// But preserve regular if participant already has it selected
if ($preserveRegular) {
return [...$otherServices, $discountedPkw, $regularPkw];
}
return [...$otherServices, $discountedPkw];
}
// Discounted has availability, show only discounted (hide regular)
// But preserve regular if participant already has it selected
if ($preserveRegular) {
return [...$otherServices, $discountedPkw, $regularPkw];
}
return [...$otherServices, $discountedPkw];
}
// Fallback: return all services if we don't have the expected discount/regular pair