fix: don't show incorrect notification about updated rentals

This commit is contained in:
Björn Fromme
2026-03-16 12:00:56 +01:00
parent 82a8541af1
commit 2372958713
@@ -96,7 +96,9 @@ class ParticipantRentalsFieldHandler extends AbstractParticipantFieldHandler
);
// Notify if rentals were cleared due to skipass duration change
if ([] !== $previousRentals && [] === $validSelections) {
// Only show notification if user had submitted rentals that got filtered out,
// not if the user intentionally cleared the selection (empty submission)
if ([] !== $previousRentals && [] === $validSelections && [] !== $selectedRentals) {
$participant->addNotification(
'warning',
'Ausrüstung wurde entfernt (andere Skipass-Dauer ausgewählt)'