chore: code cleanup

This commit is contained in:
Björn Fromme
2026-03-16 12:02:59 +01:00
parent bbc011ddb9
commit 1f27c744d2
4 changed files with 11 additions and 12 deletions
@@ -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