chore: code cleanup

This commit is contained in:
Björn Fromme
2026-02-05 17:45:54 +01:00
parent 2f9930a240
commit 6adc0769c7
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